Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
TP-Java-Rendu
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
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hepia_2022-2023
Java
TP-Java-Rendu
Commits
b5d53a5e
Commit
b5d53a5e
authored
2 years ago
by
alec.schmidt
Browse files
Options
Downloads
Patches
Plain Diff
Delete Main.java
parent
18966a17
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Main.java
+0
-53
0 additions, 53 deletions
Main.java
with
0 additions
and
53 deletions
Main.java
deleted
100644 → 0
+
0
−
53
View file @
18966a17
public
class
Main
{
public
static
void
main
(
String
[]
args
)
{
// Makeshift code as example
// New contact with random values
Contact
test
=
new
Contact
();
test
.
setName
(
"Contact1"
);
test
.
addFirstName
(
"Prenom1"
);
test
.
addFirstName
(
"Prenom2"
);
test
.
addAddress
(
"Rte du Test, 25"
);
test
.
addMail
(
"test1@address.com"
);
test
.
addSocial
(
"MrContact"
);
test
.
addPhone
(
"0227865425"
);
test
.
setJob
(
"Ingénieur Informaticien"
);
// Let's add the contact to our phone book
Contacts
contacts
=
new
Contacts
();
contacts
.
append
(
test
);
// Was it correctly added ?
contacts
.
printContacts
();
// Alrightimport Contact;
// let's add another
Contact
test2
=
new
Contact
();
test2
.
setName
(
"Contact2"
);
test2
.
addFirstName
(
"Prenom1"
);
test2
.
addFirstName
(
"Prenom2"
);
test2
.
addAddress
(
"Rte du Deuxième Test, 50"
);
test2
.
addMail
(
"test2@address.com"
);
test2
.
addSocial
(
"MrContact_Deuxieme"
);
test2
.
addPhone
(
"0227865426"
);
test2
.
setJob
(
"Maître Informaticien"
);
contacts
.
append
(
test2
);
// Was it correctly added ?
contacts
.
printContacts
();
// Okay it works, now we can try to remove one
contacts
.
remove
(
1
);
// let's check it
contacts
.
printContacts
();
/*
contacts.update(0);
contacts.printContacts();
*/
}
}
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