Hi I need help with this java code, I need the program to run until user enters -1 instead of 0 or 1

[code]
public static void main(String args[])
{
Scanner input = new Scanner(System.in);...