NumberFormatException thrown by Integer.parseInt
Hey Im taking coding lessons at school but the teacher does not explain that well so we have to look for info online which I did, but I was not able to find the error in my code, can you help me please? char end='s'; do{ System.out.println("Tipo de boleto"); char boleto = (char) System.in.read(); switch (boleto){ case 'a': System.out.println("El boleto cuesta $120.00"); System.out.println("Otro boleto (s/n)?"); end = (char) Integer.parseInt(entrada.readLine()); continue; case 'n': System.out.println("El boleto cuesta $75.00"); System.out.println("Otro boleto (s/n)?"); end = (char) Integer