title: Convert String value from a file to integer
body: <p>I am reading, from a file, integer values that I should use to calculate the function <code>multiple</code>.</p>
  
  <p>However, after converting to integer, it appears that the integer variable doesn't hold them for further calculation.</p>
  
  <p>Any help please?</p>
  
  <pre><code>import java.io.*;
  
  public class Functions {
  
      int values, mul7, mul11, mul13;
  
      public static void main (String []args) { 
  
          Functions go = new Functions ();
          go.multiple();
          // will call functions here
      }
  
      public void multiple () {
  
  
          int a = 7;
          int b = 11;
          int c = 13;
  
          try {
              File inputFile = new File ("JavaInputData.txt");
              FileReader fileReader = new FileReader (inputFile);
  
              BufferedReader reader = new BufferedReader (fileReader);
  
              String line = null;
  
              while ((line = reader.readLine()) !=null)
                      {   
                          values = Integer.parseInt(line);
                          System.out.println(values);
                      }
  
              mul7 = values % a;
              mul11 = values %b;
              mul13 = values %c;
  
              System.out.println(mul7);
  
              reader.close();
              }
  
          catch (Exception ex) 
          {
              ex.printStackTrace();
          }
  
  
      }
  
  }
  </code></pre>