Utiliser printf pour définir le nombre d’espace dans l’affichage de String

Author:


{filelink=6039}


public class PrintfExspace {
  public static void main(String[] argv) throws Exception {

    System.out.printf("%10s %10s %10s", "Bon", "jour", "!");

  }
}

Leave a Reply

Your email address will not be published. Required fields are marked *