string url dari url java

URL url = new URL("www.google.com");
string urlString = url.getPath();
Jos