摘要:
通過JAVA API顯示本機IP地址和網絡上任何一臺可以訪問到的服務器的IP地址import java.io.IOException;import java.net.InetAddress;import java.net.UnknownHostException;public class GetIP { private InetAddress LocalIP=null; private InetAddress ServerIP=null; public static void main(String args[]){ GetIP mytest=new GetIP(); System.out. 阅读全文
摘要:
import java.io.BufferedInputStream;import java.io.FileOutputStream;import java.io.FileWriter;import java.io.IOException;import java.io.PrintWriter;import java.net.URL;import org.w3c.tidy.Tidy;public class HTML2XML { private String url; private String outFileName; private String errOutFileName; publ 阅读全文