How do I make it loop back to the start of the FOR loop again? I had try searching the answers. Use of continue don't seems to work for me.
try{
for (int i = 0; i < Array1.length; i++){
System.out.println("enter Values ");
Scanner input = new Scanner(System.in);
Array1[i]= input.nextInt();
}
}//try
catch (InputMismatchException e)
{
System.out.println("pls enter integers only ");
}//catch
How do I go about continuing the process again? For example
Enter Values 5 enter Values 1 enter Values g pls enter integers only ->> error exception is over here
After this error show, how am I able to continue the enter values process without retyping from value 1?