Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
tok-chef
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Antoine HAZEBROUCK
tok-chef
Commits
8b9de534
Commit
8b9de534
authored
Sep 11, 2024
by
Pronier Julien
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test ingrédient
parent
b8069c19
Pipeline
#2880
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
Application.java
src/main/java/imt/Application.java
+11
-7
No files found.
src/main/java/imt/Application.java
View file @
8b9de534
package
imt
;
import
imt.ingredients.Consigne
;
import
imt.ingredients.Ingredient
;
import
imt.ingredients.Legume
;
import
imt.ingredients.ViandePoisson
;
...
...
@@ -12,12 +13,15 @@ public class Application {
// System.out.println(padawan);
// Ingredient ingredient1 = new Legume(1,"Oignons",120,false);
// Ingredient ingredient2 = new Legume(2,"Patate",120,false);
// Ingredient ingredient3 = new ViandePoisson(3,"Poulet",120,12);
// Ingredient[] ingredients = {ingredient1, ingredient2, ingredient3};
//
// Plat plat = new Plat(1,"Oignon Poulet patate", ingredients);
// System.out.println(plat);
Ingredient
ingredient1
=
new
Legume
(
1
,
"Oignons"
,
120
,
false
);
Ingredient
ingredient2
=
new
Legume
(
2
,
"Patate"
,
120
,
false
);
Ingredient
ingredient3
=
new
ViandePoisson
(
3
,
"Poulet"
,
120
,
12
);
ingredient1
.
setConsigne
(
Consigne
.
CUIT
);
ingredient2
.
setConsigne
(
Consigne
.
CUIT
);
ingredient3
.
setConsigne
(
Consigne
.
CUIT
);
Ingredient
[]
ingredients
=
{
ingredient1
,
ingredient2
,
ingredient3
};
Plat
plat
=
new
Plat
(
1
,
"Oignon Poulet patate"
,
ingredients
);
System
.
out
.
println
(
plat
);
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment