Démonstration de spécificateur de format

Author:


{filelink=4417}


import java.util.*; 

public class FormatDemo2 {
  public static void main(String args[]) {
    Formatter fmt = new Formatter(); 

    for(double i=1000; i < 1.0e+10; i *= 100) {
      fmt.format("%g ", i);
      System.out.println(fmt);
    } 

  }
}           

Leave a Reply

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