Classe Formatter: Exemple d’utilisation de ‘%tr’

Author:


{filelink=5770}


import java.util.Calendar;
import java.util.Formatter;

public class HeureAmericain {
  public static void main(String[] argv) throws Exception {
    Formatter fmt = new Formatter();
    Calendar cal = Calendar.getInstance();

    fmt.format("Heure en format Americain: %tr", cal);
    System.out.println(fmt);

  }
}

A Voir sur le même Sujet:

  • maskformatter heure
  • email batik.com.tr loc:FR

Leave a Reply

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

classe Formatter: Exemple d’utilisation de ‘%tr’

Author:


{filelink=5771}


import java.util.Calendar;
import java.util.Formatter;

public class Main {
  public static void main(String[] argv) throws Exception {
    Formatter fmt = new Formatter();
    Calendar cal = Calendar.getInstance();

    fmt.format("l'heure: %tr", cal);
    System.out.println(fmt);

  }
}

A Voir sur le même Sujet:

  • email batik.com.tr loc:FR
  • maskformatter exemple
  • java maskformatter

Leave a Reply

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