+ 2

How do you tell a program to go to next line

16th Nov 2017, 1:45 PM
Esraa A
Esraa A - avatar
8 Answers
+ 2
Java
16th Nov 2017, 1:50 PM
Esraa A
Esraa A - avatar
+ 2
where should I put it before or after the string
16th Nov 2017, 1:53 PM
Esraa A
Esraa A - avatar
+ 2
thanks
16th Nov 2017, 2:14 PM
Esraa A
Esraa A - avatar
+ 1
Normally "\n" but what language are you using.
16th Nov 2017, 1:49 PM
josh mizzi
josh mizzi - avatar
+ 1
Within E. G. "Hi. /nMy name is Josh" Hi. My name is Josh For more info Google "Java special characters"
16th Nov 2017, 2:05 PM
josh mizzi
josh mizzi - avatar
+ 1
That's OK.
16th Nov 2017, 2:15 PM
josh mizzi
josh mizzi - avatar
0
Then "\n" will indicate a new line in a String.
16th Nov 2017, 1:53 PM
josh mizzi
josh mizzi - avatar