我改了,还是不行??
/*java网络编程
*类InetAddress的用法
*文件名ko261.java
*/import java.net.*;
class ko26-1
  {
   public static void main(String args[])throws UnknownHostException
      {
       InetAddress addr1,addr2;
       addr1=InetAddress.getLocalHost();
       addr2=InetAddress.getByName("www.xjtu.edu.cn");
       System.out.println(addr1);   
       System.out.println(addr2);
       InetAddress addr3[]=InetAddress.GetAllByname("www.sohu.com");
       for(int n=0;n<addr3.length;n++)
          System.out.println(addr3[n]);
      }
  }