[问题]Cannot find symbol
编译后的出错信息为:
symbol : method getHostAddress()
location: class java.net.InetAddress[]
System.out.println(name+"["+i+"] : "
+addr.getHostAddress()); ^
其他的定义:
String name = args[0];
InetAddress[] addr = InetAddress.getAllByName(name);
我是在看不懂到底哪里出问题了..?