title: how to parse or read Int from BufferedReader?
body: <p>I'm trying to read an int with <code>BufferedReader</code>. I know i have a mismatch with the type (string, int) but i not sure what i need to change about the code to make it work.</p>
  <p>I know how to use it for string reading and printing but no for int and use some operators</p>
  <pre><code>import java.io.*;
  public class tmetodoI {
  
      public static void main(String[] args) {
          
      BufferedReader dataIn = new BufferedReader 
              (new InputStreamReader(System.in));
      
      String num = &quot;&quot;;    
          
          System.out.print(&quot;Ingrese un valor entero para determinar si es multiplo de 6&quot;);
          
          try {
          num = dataIn.readLine();        
          } catch(IOException e) {
              System.out.print(&quot;Error!&quot;);
          }
          
          if (num%6&gt;0)
          
      }
  }
  </code></pre>