Menu-driven console help please
I know their was a query on menus before but mine is a little more simple, just feel I have missed something simple.
My issue is that my menu is made up of
System.out.println(" A. Check if number is in Fibonacci sequence.");
System.out.println(" B. Basic savings calculator.");
System.out.println(" X. Exit the program");
so i use a scanner
Scanner scan = new Scanner(System.in);
String box = scan.next();
I think an if statement should work but error comes up when i try to call it with A,B,X all is well for everything if I set it as integers and label them as 123
example of what im using
if (box == A)
String B = new String(box);
else if(box == B)
I don't want the answer I just want were and what I should be looking at to get the answer : ) , think may be I am missing an object but...:confused:
I am studying via correspondence so no one to bounce ideas of and trawling the net has come to no avail (may be looking for wrong thing me thinks).