import javax.swing.JOptionPane;
public class password {
public static void main (String[] args)
{
String output;
String output2;
String pass2;
String pass1;
String passko;
[code]passko=adnan;
pass2=JOptionPane.showInputDialog("enter password to continue(letter only)");
password.compareTO(pass2);
if(passko==pass2)
{
output=("acces Granted");
JOptionPane.showMessageDialog(null,output,"welcome",
JOptionPane.INFORMATION_MESSAGE);
}
else
{
output2=("acces denied");
JOptionPane.showMessageDialog(null,output2,"error",
JOptionPane.ERROR_MESSAGE);
}
System.exit(0);
}
}
Quote
/**
* there is an error message of
*
*
* error: cannot find symbol
* error: cannot find symbol
*/

New Topic/Question
Reply



MultiQuote



|