My program inputs are overwriting. He ignores the first one and already launches 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 work around this error?