title: Reading int, double and strings and ignore tokens
body: <pre><code>12.9 ; I @ 13 jav
  
  3.8 ; can @ 6 aru
  
  4.0 ; read @ 109 les
  </code></pre>
  
  <p>The program is supposed to read this in as a string and then add all the doubles, integers, and then to add the first string together and the last string together. So the program should provide </p>
  
  <pre><code>Double total : 20.7
  
  Integer total : 128
  
  Line : I can read
  
  Word: javarules
  </code></pre>
  
  <p>This is what I have so far , I know that I have to use scanner to skip over the tokens .</p>
  
  <pre><code>public class Test {
  public static void main (String args[]) throws FileNotFoundException {
      Scanner sc = new Scanner(Test4.class.getResourceAsStream("week2inputdata.txt"));
  
      double doubletotal = 0;
      int inttotal = 0; 
      String line = " ";
      String word;
  
      Scanner scanLine;
      while (sc.hasNextLine()){
        scanLine = new Scanner (sc.nextLine());
        scanLine.next();
  
        line += sc.hasNextLine();   
        inttotal += sc.nextInt();
        // scanLine = new Scanner (sc.nextLine());
        // scanLine.next();
        // line += sc.next() + " ";
        // inttotal += sc.nextInt();
        doubletotal += sc.nextDouble();
      }
          System.out.println(inttotal);
          System.out.println(doubletotal);
          System.out.println(line);
      }
  }
  </code></pre>