I have a Scanner object and the values being input are integers. What I would like to do is have the user enter an 's' to stop the input. I have the following code (which of course throws an error). How can I accomplish my goal? Thank you.
int stop = 's';
Scanner input = new Scanner(System.in);
System.out.println("Enter the first number of the array: ");
number = input.nextInt();
while (input != stop)
//process this code