3
The inputs of my program are overwriting itself. It ignores the first and already Lanca the second straight.
System.out.println("Digite o nome do passageiro");
String nome = in.nextLine();
System.out.println("Digite o numero do ticket do passageiro");
int ticket = in.nextInt();
How to get around this error?
The variable
in
is of classScanner
?– user28595
Yeah, that’s the one
– GGirotto