+ 1

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 */

1st Jul 2018, 4:01 PM
Roff Bilex
Roff Bilex - avatar
2 Respostas
+ 6
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");
1st Jul 2018, 4:09 PM
᠌᠌Code X
᠌᠌Code X - avatar
+ 1
Next time dont re-open a question... Delete the other one
1st Jul 2018, 4:11 PM
KrOW
KrOW - avatar