Results 1 to 5 of 5
Thread: URL/comment problem
- 07-24-2009, 05:12 PM #1
Member
- Join Date
- Jul 2009
- Posts
- 56
- Rep Power
- 0
URL/comment problem
I am trying to set an image object with the getImage(URL url) method. The problem is that when I put in the URL, the // at the end of http: makes the rest of the line into a comment. How can I get around this?
I had to word that sentence a little odd because I have less than 20 posts
-
The URL is in quotes, right? as in
So the double backslashes shouldn't do anything untoward here, correct?Java Code:getImage(new URL("http://www.foo.com/images.jpg"));
- 07-24-2009, 08:29 PM #3
Member
- Join Date
- Jul 2009
- Posts
- 56
- Rep Power
- 0
Oh okay I didn't have it in quotes or have new URL. Thanks!
-
- 07-25-2009, 03:10 AM #5
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Are you working on an IDE? If so most of the IDEs today we have generate the API explanation when you are using any API methods. It clearly mentioned about the data type of any arguments you have to use.
Anyway, please mark the the thread solved from Thread Tools menu.
Similar Threads
-
About Comment By Using SAX
By tapas in forum XMLReplies: 1Last Post: 01-24-2008, 05:29 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks