?? net1.java
字號(hào):
import java.net.*;
class net1
{ public static void main(String args[ ])throws UnknownHostException
{ InetAddress addr1,addr2;
addr1=InetAddress.getLocalHost( );
addr2=InetAddress.getByName("www.sina.com.cn");
System.out.println(addr1);
System.out.println(addr2);
InetAddress addr3[ ]=InetAddress.getAllByName("www.5460.net");
for(int n=0;n<addr3.length;n++)
System.out.println(addr3[n]);
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -