I'am trying to send email with a 'secret key' and the user is supposed to enter the key in text field to change the password(I am making a rdbms system in java) . But I'am stuck here: Firstly I've passed a string and an integer from ForgotPassword.java to ConfirmPassword.java
     close();
     ConfirmPassword cf = new ConfirmPassword(_number,uname);
     cf.setVisible(true);
then the constructor in ConfirmPassword goes like :
public ConfirmPassword(int _number , String uname) {
    initComponents();
    this._uname=uname;
    this.number=_number;
}
but this code doesn't compile and gives me error in main 'unexpected type required: value found:class' Main:
public static void main(String args[]){
   //Some look and feel code here
   java.awt.EventQueue.invokeLater(new Runnable() {
        public void run() {
            new ConfirmPassword(int,String).setVisible(true);
        }
    });
Basically what im trying to do is import data from Forgotpass JFrame to ConfirmPass Jframe any help is appreciated cheers! :)
 
    