//Case1:
System.out.println(" 1 2 3 4 5 6 7 8 9" + "\n" + "----------------------------");
//Case2:
System.out.printf(" 1 2 3 4 5 6 7 8 9" + "\n" + "----------------------------");
//Case3:
System.out.print(" 1 2 3 4 5 6 7 8 9" + "\n" + "----------------------------");