Méthode ‘printf’: Comment définir l’alignement de sortie

Author:


Download

 
public class AlignementSortie {
  public static void main(String[] argv) throws Exception {
    System.out.printf("%15s %15s %15s", "Un", "Simple", "Exemple !");
  }
}