This is a better code than mine. But mine would work too. Thanks for showing an aliter.
Type: Posts; User: American
This is a better code than mine. But mine would work too. Thanks for showing an aliter.
You need to use try, catch blocks for this.
public static void main(String[] args) throws InputMismatchException
{ boolean flag = true;
int i;
Scanner j = new...