Afficher l'heure courante
import java.util.Calendar;
Calendar cal = Calendar.getInstance(); System.out.println(cal.get(Calendar.HOUR_OF_DAY)+"h "+cal.get(Calendar.MINUTE)+"m et "+cal.get(Calendar.SECOND)+"s"); |