PPT Slide
public class URLReaderExample {
(String[] args) throws Exception {
if (args.length == 0) showUsage();
URL myURL = new URL("http://” + args[0]);
new BufferedReader(new InputStreamReader
while ((strInput = in.readLine()) != null)
System.out.println(strInput);
public static void showUsage(){
("Usage:\n\tjava URLReaderExample <IP Address>");