I'm able to read in an HTML page but having trouble in deciding how to parse through a page of HTML tags to get the info. I need.
This is the code I used to read in the HTML PAGE. All I need from this page is the countries and their currencies to put them in a table format.
import java.net.*;
import java.io.*;
public class URLReaderExample
{
public static void main(String[] args)throws Exception
{ String input;
URL carleton = new URL(" BufferedReader in = new BufferedReader(new InputStreamReader(carleton.openStream()));
while((input=in.readLine()) != null)
System.out.println(input);
in.close();
}
}
This is the code I used to read in the HTML PAGE. All I need from this page is the countries and their currencies to put them in a table format.
import java.net.*;
import java.io.*;
public class URLReaderExample
{
public static void main(String[] args)throws Exception
{ String input;
URL carleton = new URL(" BufferedReader in = new BufferedReader(new InputStreamReader(carleton.openStream()));
while((input=in.readLine()) != null)
System.out.println(input);
in.close();
}
}