Afficher l’heure actuelle

Author:

Afficher,l'heure,actuelle
{filelink=5606}


import java.util.Calendar;

public class HeureActuelle
{
  public static void main(String[] args) throws Exception {

    Calendar cal = Calendar.getInstance();
    System.out.printf("Heure et Date actuelle: %tc", cal);
  }
}

Leave a Reply

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