Telekommunikatsiya texnologiyalari fakulteti 417-20 guruh talabasi




Download 0,65 Mb.
Sana19.11.2023
Hajmi0,65 Mb.
#101201
Bog'liq
Rustamov F. 4


O’ZBEKISTON RESPUBLIKASI RAQAMLI TEXNOLOGIYALAR VAZIRLIGI

Muhammad al-Xorazmiy nomidagi
Toshkent Axborot Texnologiyalari Universiteti


Telekommunikatsiya texnologiyalari fakulteti


417-20 guruh talabasi


Rustamov Fayzulloning


Tarmoqni dasturlash asoslari fanidan tayyorlagan



4-Labaratoriya ishi




Bajardi: Rustamov Fayzullo
Tekshirdi: Berdimuradov Mirzohid
Mavzu: Internet manzillar va JSON ma’lumotlar almashish formati bilan ishlash
Ishning maqsadi: Talabalarda Java dasturlash tili java.net.* paketining URL klassi va uning metodlari hamda JSON ma’lumotlar almashish formati bilan ishlash bo‘yicha amaliy ko‘nikmalar hosil qilish.
import java.net.URL;

public class URL14 {

public static void main(String[] args) {

try {


URL url = new URL("https://www.amazon.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);
}
}
}

Download 0,65 Mb.




Download 0,65 Mb.

Bosh sahifa
Aloqalar

    Bosh sahifa



Telekommunikatsiya texnologiyalari fakulteti 417-20 guruh talabasi

Download 0,65 Mb.