// try{
// URL url = new URL("http://seek.3721.com/left.htm?p=公司"); //Google
// BufferedReader in = new BufferedReader(new InputStreamReader(url.
// openStream()));
// String line = null;
// String str = null;
// StringBuffer sb = new StringBuffer();
// while ( (line = in.readLine()) != null)
// sb.append(line);
// in.close();
// System.out.println(sb.toString());//
// }catch(Exception e){}sb中是从网上搜出来的信息,有什么办法直接让其web方式显示呢?!谢谢!!
// URL url = new URL("http://seek.3721.com/left.htm?p=公司"); //Google
// BufferedReader in = new BufferedReader(new InputStreamReader(url.
// openStream()));
// String line = null;
// String str = null;
// StringBuffer sb = new StringBuffer();
// while ( (line = in.readLine()) != null)
// sb.append(line);
// in.close();
// System.out.println(sb.toString());//
// }catch(Exception e){}sb中是从网上搜出来的信息,有什么办法直接让其web方式显示呢?!谢谢!!
URL urlTest = new URL("http://www.baidu.com/s?wd=线程池&cl=3"); //baidu
// URL urlTest = new URL("http://www.google.com/search?hl=zh-CN&q=%E7%BA%BF%E7%A8%8B%E6%B1%A0&lr="); //baidu
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler "+urlTest.toString());
}
catch (IOException ex) {
System.out.println("Menus Error!");
}