sendReq2 - new InputStreamReader(url.openStream())); String...

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

This note was uploaded on 07/14/2011 for the course COP 4610L taught by Professor Staff during the Spring '09 term at University of Central Florida.

Ask a homework question - tutors are online