//first of all, you dont need to import the java.lang package
//it is imported automatically
import javax.swing.JOptionPane;
public class Correction{
public static void main(String[] args)
{
String input1 = JOptionPane.showInputDialog(null, "Please enter your ID.");
String input2 = JOptionPane.showInputDialog(null, "Please enter your password.");
if(input1.equals("admin") && input2.equals("open")){
JOptionPane.showMessageDialog(null, "Welcome");
}
else if(input1.equals("admin") && input2.equals("")){
JOptionPane.showMessageDialog(null, "Wrong Password");
}
else if(input1.equals("") && input2.equals("open")){
JOptionPane.showMessageDialog(null, "Wrong ID");
}
else{
JOptionPane.showMessageDialog(null, "Wrong ID and Password");
}
System.exit(0);
}
}