一个很菜鸟的问题 通过socket连接,自己找找文档,方法都有的,^_^ 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 import java.net.*; class dg{ public static void main(String[] args) throws Exception { System.out.println(InetAddress.getLocalHost()); System.out.println(InetAddress.getByName("127.0.0.1")); System.out.println(InetAddress.getByName("127.0.0.1")); }} 试试 kkcncry(大连轻工业学院!大四!王某) 的吧! 我以前还真不知道有这个类InetAddress 又学一招 《JAVA编程思想》中第四章第二题的答案错了。 求解 月份编程 关于java多线程机制的疑惑 &和&&分别是什么意思,一样吗? 问一下~~有个小问题不太懂,谁教我一下~~~~ 一份日记工具软件源代码下载。 用浏览器和appletviewer命令查看Applet的区别 log4j的问题 请助 菜鸟的问题 请教一个有问题的小程序! JAVA编程一般用什么工具??
class dg
{
public static void main(String[] args) throws Exception
{
System.out.println(InetAddress.getLocalHost());
System.out.println(InetAddress.getByName("127.0.0.1"));
System.out.println(InetAddress.getByName("127.0.0.1"));
}
}