System.out.println("Ingrese tipo de cuenta \n1. corriente\n2.Ahorro");
tipo=Integer.parseInt(entrada.readLine());//-->>
How could I do that for example here you have to enter a number but if you enter with a letter that the try
catch
would be the Numberformat
but to repeat the option enter as could i do it?