What you might want to do is set your logic more like:
System.out.println("Press 1 for xx, 2 for xx, or 3 for xx");
if(scanner.hasNext()){
choice = scanner.Int();
}
if(choice == 1){
//do whatever;
}
else if(choice == 2){
//do whatever;
}
I might not be understanding your question right but I think you need to make sure you keep everything in order.
1
solved Why does System.out.println(String) not print anything?