For lab 3, you need to read from a URL. See the I/O notes about URL streams (and also see java.net.URL). Don't forget to see what methods throw exceptions so you are ready to catch them (try/catch clauses) EXAMPLE: URL sourceURL = new URL(URLname); InputStream instream = sourceURL openStream(); You probably want to wrap your URLstream within another stream so that you can manipulate the bytes. for example: inFile = new DataInputStream(instream); // DataInputStreams read bytes that can then be looked // at with readInt, readChar, etc // see java.io.DataInputStream or instreamread = new InputStreamReader(instream); inFile = new BufferedReader(instreamread); // BufferedReader reads text from a character-input stream // InputStreamReader is a bridge from byte streams // to character streams // BufferedReader has the readLine() method ... However you get your input (as characters or bytes) you still will need to manipulate the information. For example, readLine() gives you a string. You probably want to take that string and put it into a StringBuffer so you can actually get into it and manipulate it. From there, I am leaving it to you to how you retrieve the different fields of each line... Also, java.lang.StreamTokenizer or java.util.StringTokenizer may be useful if you don't want to write you own parser. ****************************************************************************************** These below were from this page when I very first made this course back in 1996. It makes me laugh since back then, browsers didn't have the java plug-ins yet. How funny to tell you to use the HotJava browser. I have not heard anyone mention it in almost 10 years! These days, your favorite browser will probably work just fine. I am keeping it here to see how much we have advance ;-) ****************************************************************************************** Since appletviewer is not a full Browser, the server idea for URLs is messed up. Specifically, getCodeBase() and getDocumentBase() may not work since they are looking for locations on the server of the browser (the base URL of the applet and the URL of the document containing the applet) respectively. So, for lab 3, you might want to try testing on HotJava /opt/java/HotJava1.1/bin/hotjava so that it can use the server to find my URL with the input.