title: Converting string from buffered reader to double
body: <p>my assignment requires me to create an program to read an text file and calculate the values in there. The text file contain something like this :</p>
  
  <pre><code>"11047461 [tab] 60.5
  
   12024121 [tab] 58
  
   12027019 [tab] 33"
  </code></pre>
  
  <p>the 8 numbers infront is ignore, only the numbers at the back are calculated.</p>
  
  <p>after refering to some codings from this web.I still get a message like this :</p>
  
  <pre><code>Exception in thread "main" java.lang.NumberFormatException: For input string: "11047461 60.5"
      at sun.misc.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:1222)
      at java.lang.Double.parseDouble(Double.java:510)
      at Problem2.main(Problem2.java:16)
  </code></pre>
  
  <hr>
  
  <pre><code>public static void main(String[] args) throws IOException, FileNotFoundException {
      // TODO Auto-generated method stub
      BufferedReader read = new BufferedReader(new InputStreamReader(new FileInputStream("C:\\Users\\My World\\Downloads\\PRG102D.txt")));
  
      String line;
      double score;
  
      while((line = read.readLine()) != null) {
      score = Double.parseDouble(line);
      System.out.println(score);
  
  
  }
  
  }
  </code></pre>