I need help with my code: I'm brand new to Java
How do I get the string "user" variable to display my choice after I've entered the choice?
import javax.swing.JOptionPane;
import java.util.Scanner;
public class Assignment {
public static void main(String[] args) {
// TODO code application logic here
Scanner input = new Scanner( System.in );
String me = JOptionPane.showInputDialog("Please input name!");
System.out.println("Your name is: " + me);
String user = JOptionPane.showInputDialog("Please enter your choice!");
System.out.println("Your choice is: " + user);
JOptionPane.showMessageDialog(null, "Your choice is: " + user);
if(user.equals('1'))
JOptionPane.showMessageDialog(null, "Username" + me + user);
}
}