15 lines
380 B
Java
15 lines
380 B
Java
public class Q2_Date {
|
|
public static void main(String[] args) {
|
|
Date jourRandom = new Date(2023, 2, 23);
|
|
Date mariage = new Date(2023, 3, 1);
|
|
for (int i=0; i<10 ; i++){
|
|
System.out.print(jourRandom);
|
|
if (jourRandom.compare(mariage)){
|
|
System.out.print(" = Jour de mariage !!!");
|
|
}
|
|
System.out.println("");
|
|
jourRandom.lendemain();
|
|
}
|
|
}
|
|
}
|