Posts by user237021 • 1 point
1 post
-
0
votes1
answer49
viewsA: Doubt in Try-catch & vector JAVA
You can place your Try/catch inside an infinite loop, and let it run until a valid integer is entered: while (true) try { System.out.println("Informe o primeiro valor: "); vetor[0] =…