import javax.swing.JOptionPane;
import java.text.*;
public class SimpleSignInExample{
public static void main(String[] args){
String choice = "";
try{
while (!(choice.equalsIgnoreCase("x"

)){
String userName = null;
String userPassword = null;
String userAccount = null;
String userInfo = null;
String inputString = JOptionPane.showInputDialog(null,
"Enter last name, account, and password (separate each with a comma): ", "Input", JOptionPane.PLAIN_MESSAGE);
String message = "Last name: " + (userName) + "\n"
+ "Account: " + (userAccount) + "\n"
+ "Password: " + (userPassword) + "\n\n"
+ "To continue, press Enter.\n"
+ "To exit, enter 'x': ";
choice = JOptionPane.showInputDialog(null,
message, "Invoice", JOptionPane.PLAIN_MESSAGE);
}
}
catch(NullPointerException e){
System.exit(0);
}
System.exit(0);
}
Ok..I am down to one error left.
--------------------Configuration: java <Default>--------------------
C:\java\bin\SimpleSignInExample.java:30: '}' expected
}
^
1 error
Process completed.