Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dev-oo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Ethan Robert
dev-oo
Commits
613a1cb1
Commit
613a1cb1
authored
2 months ago
by
Ethan Robert
Browse files
Options
Downloads
Patches
Plain Diff
Added UseTask (main) program
parent
d4aa5796
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/tp03/UseTask.java
+25
-0
25 additions, 0 deletions
src/tp03/UseTask.java
with
25 additions
and
0 deletions
src/tp03/UseTask.java
0 → 100644
+
25
−
0
View file @
613a1cb1
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment