From 829bb0cf20bdd2171f867bfcae5ced5b5ad8cc5e Mon Sep 17 00:00:00 2001 From: Sylvain Papa Date: Mon, 14 Jan 2019 12:12:27 +0100 Subject: [PATCH] add person in Main and data --- data/firstname.json | 15 ++++++++++++ src/Main.java | 58 +++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 73 insertions(+) create mode 100644 data/firstname.json diff --git a/data/firstname.json b/data/firstname.json new file mode 100644 index 0000000..8ed9291 --- /dev/null +++ b/data/firstname.json @@ -0,0 +1,15 @@ +[ + { + "name": "Sylvain" , + "name": "Aurelie" , + "name": "Audrey" , + "name": "Abdel" , + "name": "Gilles" , + "name": "Alan" , + "name": "Brice" , + "name": "Alexandre" , + "name": "Sophia" , + "name": "Merlin" , + "name": "Bob" + } +] \ No newline at end of file diff --git a/src/Main.java b/src/Main.java index f455313..5a89468 100644 --- a/src/Main.java +++ b/src/Main.java @@ -16,6 +16,64 @@ public class Main { personArrayList.add(person3); Person person4 = new Person("Sophia", "Brasil", 155, 57, "blue"); personArrayList.add(person4); + Person person5 = new Person("Sylvain", "Italie", 181, 75, "brow"); + personArrayList.add(person5); + Person person6 = new Person("Merlin", "United States of America", 210, 88, "blue"); + personArrayList.add(person6); + Person person7 = new Person("Bob", "United States of America", 162, 75, "green"); + personArrayList.add(person7); + Person person8 = new Person("Jonh", "United Kingdom", 176, 102, "brown"); + personArrayList.add(person8); + Person person9 = new Person("Kithe", "Germany", 166, 69, "black"); + personArrayList.add(person9); + Person person10 = new Person("Alfred", "United Kingdom", 172, 63, "brown"); + personArrayList.add(person10); + Person person11 = new Person("Rodolphe", "Norway", 212, 108, "blue"); + personArrayList.add(person11); + Person person12 = new Person("Isabelle", "France", 160, 40, "brown"); + personArrayList.add(person12); + Person person13 = new Person("Rodolphe", "Germany", 212, 108, "black"); + personArrayList.add(person13); + Person person14 = new Person("Rodolphe", "Norway", 212, 108, "blue"); + personArrayList.add(person14); + Person person15 = new Person("Abdel", "Mali", 168, 52, "black"); + personArrayList.add(person15); + Person person16 = new Person("Sherrazade", "Mali", 148, 48, "black"); + personArrayList.add(person16); + Person person17 = new Person("Aifa", "Mali", 149, 49, "black"); + personArrayList.add(person17); + Person person18 = new Person("Roberto", "Brasil", 168, 56, "brown"); + personArrayList.add(person18); + Person person19 = new Person("Batista", "France", 158, 52, "black"); + personArrayList.add(person19); + Person person20 = new Person("Candide", "Norway", 182, 63, "blue"); + personArrayList.add(person20); + Person person21 = new Person("Agathe", "Norway", 185, 62, "green"); + personArrayList.add(person21); + Person person22 = new Person("Ragna", "Norway", 180, 64, "blue"); + personArrayList.add(person22); + Person person23 = new Person("Charlotta", "Norway", 179, 65, "green"); + personArrayList.add(person23); + Person person24 = new Person("Gilles", "France", 182, 90, "black"); + personArrayList.add(person24); + Person person25 = new Person("Erwan", "France", 175, 75, "green"); + personArrayList.add(person25); + Person person26 = new Person("Alain", "France", 183, 73, "black"); + personArrayList.add(person26); + Person person27 = new Person("Roger", "France", 165, 76, "green"); + personArrayList.add(person27); + Person person28 = new Person("Charles", "France", 168, 75, "brown"); + personArrayList.add(person28); + Person person29 = new Person("Ange", "France", 175, 62, "green"); + personArrayList.add(person29); + Person person30 = new Person("Aurelie", "France", 163, 59, "green"); + personArrayList.add(person30); + Person person31 = new Person("Audrey", "United Kingdom", 163, 69, "blue"); + personArrayList.add(person31); + Person person32 = new Person("Anthony", "United Kingdom", 176, 69, "black"); + personArrayList.add(person32); + Person person33 = new Person("Audrey", "United Kingdom", 163, 69, "blue"); + personArrayList.add(person33); Person emptyPerson = new Person(); emptyPerson.setPersonArrayList(personArrayList); -- 2.34.1