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
  • 71
  • 7

1 Answers1

2

Try to use character \n from Escape Sequences

System.out.println("\nsome output\n");
Sergey Bubenshchikov
  • 5,097
  • 2
  • 31
  • 54
  • 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