So I was attempting to use this String in a URL :-
http://site-test.com/Meetings/IC/DownloadDocument?meetingId=c21c905c-8359-4bd6-b864-844709e05754&item
This code worked for me
public static void main(String[] args) { try { java.net.URL myUr = new java.net.URL("http://path"); System.out.println("Instantiated new URL: " + connection_url); } catch (MalformedURLException e) { e.printStackTrace(); } }
Instantiated new URL: http://path