Hello,
Scanner not working well when i Run my java program as batch.
How can I remove from the String the new line (\n)?
For example:
String example = "Hello World!\n";
I want to remove the new line tag.
I think I can remove it only Ascii code (Because not contains \n), but i can't use it.
Is there any other way to specify the value of the usedelimiter?
I'm using this:
Scanner be = new Scanner(System.in).useDelimiter("\n");