This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes URL Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "URL Object" Watch "URL Object" New topic

URL Object

M.L. Bowe

Joined: Dec 09, 2004
Posts: 7
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

Joined: Apr 04, 2002
Posts: 119
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.

I agree. Here's the link:
subject: URL Object
Similar Threads
How many statements we can create from a single connection
question on server binding
Need help with uploading file
Please convey me which is best in regarding performance and Y