Is it possible to print out the months like the picture below with that little space infront of January with printf? If I put "%10s" it will also make the months space far apart, I want before January to have a 10 blank space and between each months there 3 blank space. I try putting a "System.out.print(" ");" before the for loop but I'm trying to use printf . Thanks
wadwdwa.png
String month[]={"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"}; for(String monthOf : month) { System.out.printf("%6s",monthOf); }