Moving to the next line | Sololearn: Learn to code for FREE!


Moving to the next line

Please what is the code to move to the nextline.........I am using "X" to denote the code in question (I dont know it) System.out.println("how to do this: "X" 1. Go up "X" 2.Go down"); /* Output should be like this..., how to do this: 1. Go up 2. Go down */

7/1/2018 4:01:12 PM

Roff Bilex

2 Answers

New Answer


System.out.println("1.Go up\n2.Go down"); \n is used for breaking lines or since println itself breaks lines.. System.out.println("1.go up"); System.out.println("1.go down");


Next time dont re-open a question... Delete the other one