创建一个URL实例 创建一个UL对象: try URL location new URL("http://www.sun.com"); catch (MalformedURLException e) {} ViewingWebPages ©2006计算机系杨厚群 All rights lefts reserved ©2006 计算机系 杨厚群 All rights & lefts reserved. 创建一个URL实例 创建一个URL 对象: try { URL location = new URL("http://www.sun.com"); } catch(MalformedURLException e) { } ViewingWebPages