Java Transformar String URL

URL url = new URL(string);
Wrong Wasp