String s1=sc.next(); int x=sc.nextInt(); System.out.printf( "%-15s%03dn", s1, x);
Can someone explain the part inside the 'printf' braces?
Aucun commentaire:
Enregistrer un commentaire