do{
//Menu options
System.out.print("6.) Exit
");
System.out.print("
Enter Your Menu Choice: ");
choice = input.nextInt();
switch(choice){
//Your cases from 1 to 6.
default:
System.out.println("Invalid menu choice; try again.");
break;
}
}while(choice != 6);