0

Im a student working from console and often have to separate my output with an empty line. Im not a big fan of the approach we've learned in the classroom to structure the output. What would be a better approach to this?

//code
        System.out.println();
        System.out.println("some output");
        System.out.println();

//more code
mrKapplan
  • 69
  • 7

1 Answers1

2

Try to use character \n from Escape Sequences

System.out.println("\nsome output\n");
Sergei Bubenshchikov
  • 5,275
  • 3
  • 33
  • 60
  • perfect, your response gives me a space above and below the desired output. that is because you introduced the escape sequences. – mrKapplan Feb 01 '17 at 05:38