this is main menu:
System.out.println("Main menu");
System.out.print("(1) User login \n(2) Sign up \n(3) Exit \n==> ");
int inp = s.nextInt();
do{ some code }
I want to return to the first menu after the user enters 4 here
} while(inp!=4);{
System.out.println("=== Logged out ===");
}
}
is there a method that I cant use for this problem?