title: How do I start extracting information from the provided html files
body: <p>I am trying to read, detect, extract, and print information from provided html files.  I understand how the code is supposed to work and the process that I need to take going from file to file.  I just can't seem to get this thing started.  Any suggestions or input would be appreciated.  Here is the code that I was provided</p>
  <pre><code> Scanner in = new Scanner(System.in);
         boolean more = true;
         
         while (more){
             
             System.out.println(&quot;Lookup by M)ajor, or Q)uit&quot;);
             String cmd = in.nextLine();
             
             if (cmd.equalsIgnoreCase(&quot;Q&quot;)){
                 more = false;
                 
             }else if (cmd.equalsIgnoreCase(&quot;M&quot;)){
                 
                 System.out.println(&quot;Enter major:&quot;);
                 String major = in.nextLine().toUpperCase();
                 Scanner ins;
                 
                          
                 String inputFileName = major + &quot;.html&quot;;
                 FileReader inputFile = new FileReader(inputFileName);
                 ins = new Scanner(inputFile);
  
                 String courseinfo = &quot;&quot;;
                 
                 // INSERT CODE TO:
                 // read each line, detect if the line contains the course information
                 // extract and print the information
  </code></pre>