|
Axborot texnologiyalari universiteti tarmoqni dasturlash asoslari fanidan
|
tarix | 28.11.2023 | ölçüsü | 276,34 Kb. | | #168202 |
| 1697900881 (1)
O‘ZBEKISTON RESPUBLIKASI AXBOROT TEXNOLOGIYALARI VA KOMMUNIKATSIYALARINI RIVOJLANTIRISH VAZIRLIGI
MUHAMMAD AL-XORAZMIY NOMIDAGI
AXBOROT TEXNOLOGIYALARI UNIVERSITETI
Tarmoqni dasturlash asoslari fanidan
4- AMALIY ISH
MAVZU: “Internet manzillar va JSON ma’lumotlar almashish formati bilan ishlash”
Topshirdi: Abduraximov A.
Guruh: 417-20 – guruh
Qabul qildi: Berdimuradov M.
import java.net.URL;
public class URL2 {
public static void main(String[] args) {
try {
URL url = new URL("https://uzautomotors.com/");
System.out.println("Protocol: " + url.getProtocol());
System.out.println("Host Name: " + url.getHost());
System.out.println("Port Number: " + url.getPort());
System.out.println("Default port number: " + url.getDefaultPort());
System.out.println("Query String: " + url.getQuery());
System.out.println("Path: " + url.getPath());
System.out.println("File: " + url.getFile());
}catch (Exception e){
System.out.println(e);
}
}
}
Dostları ilə paylaş: |
|
|