Skip to content
Snippets Groups Projects
Commit 613a1cb1 authored by Ethan Robert's avatar Ethan Robert
Browse files

Added UseTask (main) program

parent d4aa5796
Branches
No related tags found
No related merge requests found
package tp03.ex02;
import java.time.LocalDate;
import tp03.ex02.TaskStatus;
public class UseTask {
public static void main (String[] args) {
Task t1 = new Task("Finir exo1", 1);
Task t2 = new Task("Finir exo2", LocalDate.of(2025, 02, 01), LocalDate.of(2025, 03, 01), 2);
System.out.println(t1);
System.out.println(t2);
t1.changeStatus();
t2.changeStatus(TaskStatus.FINISHED);
System.out.println(t1);
System.out.println(t2);
}
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment