• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URL Object

 
M.L. Bowe
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have one more... I am ATTEMPTING to write an application that retrieves from a weather website the temperature of a specific location (based on input from the user). Everything I have says once I have created a URL object, I can create the URL connection. I have some documentation on creating the connection but cannot find anything on creating the URL object. Again, thanks!
 
louise rochford
Ranch Hand
Posts: 119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello M,

Try checking out the javadocs API for the version of java you're using, e.g. j2se 1.4.2. It looks like you need something like:

URL myUrl = new URL("http://myUrlAddress");

The sun java tutorials are also a good place to start when looking for info on how to do something new.

Regards,
Louise
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic