package hw1; import java.io.*; import java.util.*; import java.net.*; import java.awt.*; // Contains code for getting the HTML page, parsing it and getting the // stock quote public class GetQuoteInfo { public static float getQuoteFromURL(URLConnection u) throws IOException { String line=""; DataInputStream in = new DataInputStream(u.getInputStream()); // Look for "Last Trade" boolean lastTradeFound = false; while (lastTradeFound == false) { line = in.readLine(); if (line.regionMatches(21, "Last Trade", 0, 10) == true) lastTradeFound = true; } // Look for the first tr int numTR = 0; while (numTR < 1) { line = in.readLine(); if (line.startsWith("