Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
Ranked #107.41K
~964 People Reached
Favorite Forums
Favorite Tags
java x 1
Member Avatar for sreeram01

Hi, I want to get the information from the website using HttpURLConnection.I wrote this [code]import java.io.IOException; import java.net.MalformedURLException; import java.net.URL; import java.net.URLConnection; public class webPractice { public static void main(String[] args) { try { URL yahoo = new URL("http://www.yahoo.com"); URLConnection yahooConnection = (URLConnection) yahoo.openConnection(); yahooConnection.connect(); long s=yahooConnection.getDate(); System.out.println("date"+(String)yahooConnection.getContent()); System.out.println("Hi"); } …

Member Avatar for JamesCherrill
0
964