. 1 public class Test { 2 public static void main (String [] args) { . 3 System.out.println ( "123456 \ 6 T foregoing contents, make space 2" ); . 4 System.out.println ( "12345678 \ t 8 in front of contents, plus 8 spaces " ); . 5 System.out.println (" 123456789012345 \ t contents front 15, a fill space " ); 6 } 7 }
Reference: https://blog.csdn.net/hju22/article/details/79773252