没有错误信息~~~.就是得不到IP地址,本机的可以得到. 再看这个却又可以得到.变成APPLET就不行了.import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
public class A
{public static void main(String args[])
{
.println(address2);
try
{
InetAddress address =InetAddress.getByName("www.sohu.com");
System.out.println(address);
} catch(IOException e)
{
//showStatus("Cannot write on to the log file"+e);
}
}
}
import javax.swing.*;
import java.awt.event.*;
import java.net.*;
import java.io.*;
public class A
{public static void main(String args[])
{
.println(address2);
try
{
InetAddress address =InetAddress.getByName("www.sohu.com");
System.out.println(address);
} catch(IOException e)
{
//showStatus("Cannot write on to the log file"+e);
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货