import java.net.MalformedURLException;
import java.net.URL;
import java.util.HashMap;
import java.util.Map;
public class Main {
public static void main(String[] argv) {
Map urlMap = new HashMap();
try {
urlMap.put("java", new URL("http://www.rntsoft.com"));
} catch (MalformedURLException e) {
}
String s = urlMap.get("java").getHost();
}
}