title: method parseInt(String) in the type Integer is not applicable for the arguments (void)
body: <pre><code>import java.sql.Connection;
  import java.sql.DriverManager;
  import java.sql.PreparedStatement;
  import java.sql.ResultSet;
  
  import javax.swing.JOptionPane;
  
  
  public class Main
  {
  public static void main (String[] args) throws Exception
  
  {
      Class.forName("com.mysql.jdbc.Driver").newInstance();
      Connection con =  DriverManager.getConnection("jdbc:mysql://localhost:3306/convocation","root","");
  
  
  
      *String id_convo= Integer.parseInt(JOptionPane.showMessageDialog(null,"Input ConvoID"));*
      JOptionPane.showInputDialog(null,"Please Insert Student ConvoID");
  
      PreparedStatement statement = con.prepareStatement("select * from stud_details where id='"+id_convo+"' ");
  
      ResultSet result = statement.executeQuery();
  
      while(result.next())
      {
          JOptionPane.showMessageDialog(null,result.getString(1) + " "+ result.getString(2));
      }
  }
  }
  </code></pre>
  
  <p>Basically this is my code. I would like user to enter convo id(eg:01, 02) and it come out with the details from the database id 01 or 02.
  However, I dont know why there is an error where Integer is not applicable for the arguments (void). 
  and i dont know why. I tried to remove the String[]args but nothing works.
  what should i do? thanks</p>