+ 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 */
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");
+ 1
Next time dont re-open a question... Delete the other one