The algorithm should take in 3 integers to an ArrayList. If the input is not an integer, then there should be a prompt. When I execute my code the catch clause is e
catch
You should to use a break; in your catch(){} like so :
break;
catch(){}
try { inputNum = input.nextInt(); numbers.add(inputNum); counter += 1; } catch (Exception e) { System.out.println("invalid number "); break; }
So if one input is not correct break your loop.