+ 1

Hi. I want that My name and last name be in seprate lines. what should I do? Plz help me

http://www.sololearn.com/app/java/playground/cx9yNtNnb32d/

3rd Nov 2020, 3:42 AM
yaser
yaser - avatar
3 Answers
+ 3
yaser rewrite your code like this. You need to write "\n" (without quotes) instead of "\" for printing the remaining sentence in new line. System.out.println("My name is yaser\nMy last name is sabri"); You need to start learning your Java course since it can be seen that you didn't started. Also change your code link with this link given below. https://code.sololearn.com/cx9yNtNnb32d/?ref=app
3rd Nov 2020, 5:13 AM
...
+ 1
I like that my codes be like this ,not in seprate sentence. But my name and last name be in seprate sentence. can you help me pleaseM?
3rd Nov 2020, 3:43 AM
yaser
yaser - avatar
+ 1
thank you brother
3rd Nov 2020, 9:25 AM
yaser
yaser - avatar