1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
public class Madate
{
private int jour;
private int mois;
private int annee;
private int heuredeb;
private int minutedeb;
private String affiche;
public Madate (int wjour, int wmois, int wannee, int wheuredeb, int wminutedeb)
{
this.jour = wjour;
this.mois = wmois;
this.annee = wannee;
this.heuredeb = wheuredeb;
this.minutedeb = wminutedeb;
System.out.println ("jour: " + this.jour + " Mois: " + this.mois + " Année: " + this.annee + " Heuredeb: "
+ this.heuredeb + " Minutedeb: " + this.minutedeb);
}
public static void main (String [] args)
{
Madate a = new Madate (02, 07, 2011, 14, 30);
}
} |
Partager