I created a variable of type string and it is not reading a sentence with a line break, it is simply jumping, in java is there a way to clear buff like C or something that can do?
code snippet:
Scanner sc = new Scanner(System.in);
String nome;
nome = sc.next();