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";