{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

sendReq2 - new InputStreamReader(url.openStream String line...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import java.io.*; import java.net.*; public class sendReq2 { public static void main(String[] arg) { try { //String urlname = "http://www.cs.ucf.edu"; String urlname = "http://iwin.nws.noaa.gov/iwin/fl/hourly.html"; System.out.println(urlname); URL url = new URL(urlname); BufferedReader in = new BufferedReader(
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: new InputStreamReader(url.openStream())); String line; while(true) { line = in.readLine(); if( line == null ) break; System.out.println(line); } in.close(); } catch (MalformedURLException ee) {} catch (IOException ee) {} } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online