I want to be able to read an empty line if the user presses enter, but at the same time I want to be able to read a line with content if he inserts any.
System.out.println("Name> ");
String nome = sc.nextLine();
System.out.println("--" + nome + "--");
System.out.println("Id> ");
String id = sc.nextLine();
System.out.println(" ")
The problem is that everytime the user inserts any content, I only receive an empty String.