title: Jumping pair lines using .readLine() method at a while loop
body: <p>I am new at Java and I am having a little trouble:</p>
  
  <p>I am trying to read chemical samples to represent them at a X-Y graph. </p>
  
  <p>The input file looks like this:</p>
  
  <p>La 0.85678</p>
  
  <p>Ce 0.473</p>
  
  <p>Pr 62.839
  ...
  ...</p>
  
  <p>My code stocks only the unpair lines value (0.85678, jumps line, 62.839 at the example), and I cannot realize what is the problem:</p>
  
  <pre><code>public class Procces {
  
     public void readREE() throws IOException {
  
             try{
  
             rEE = new BufferedReader (new FileReader ("src/files/test.txt"));
  
             while   ( (currentLine = rEE.readLine() ) != null) {
  
                 try  { 
  
                     for (int size = 3;size&lt;10;size++) {
  
                         String valueDec=(currentLine.substring(3,size));
                         //char letra =(char)c;
                         if ((c=rEE.read()) != -1) {
                             System.out.println("Max size");
                         } else
  
                         valueD = Double.parseDouble(valueDec);
                         System.out.println(valueDec);
                         }
                     }
               catch (Exception excUncertainDecimals) {
                      }
                  }              
             }finally {   
                 try {  rEE.close();
                             } catch (Exception exc) {
                                }
             } 
     }
         String line;
         int c = 0;
         int counter = 0;
         String valueS = null;
         String valueSimb = null;
         Double valueD = null;
         Double logValue = null;
         Double YFin=450.0;
         String currentLine;
         BufferedReader rEE;
  </code></pre>
  
  <p>}</p>
  
  <p>Thank you in advance, as I can't see why the program jumps the pair lines.</p>