Timeline for Replacing newline character in UNIX
Current License: CC BY-SA 3.0
3 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 12, 2012 at 17:24 | history | edited | C0deH4cker | CC BY-SA 3.0 |
added 238 characters in body
|
| Jul 12, 2012 at 6:30 | comment | added | jasmeet24 | In my case, from somewhere i receive a text which i have to set it in a string. and when there is a ENTER key pressed in string, it comes in 2 lines, so wanted to replace it with \n so that when new string is executed it displays correctly. When i use in windows, the java code does what it should do, but not in unix. so should i use String.replaceAll("\n", "\\n"); ?? | |
| Jul 12, 2012 at 5:35 | history | answered | C0deH4cker | CC BY-SA 3.0 |