From a7d3b4e407c2e0786dcb5537eaaa3573ee386449 Mon Sep 17 00:00:00 2001 From: sayebabu Date: Thu, 5 Oct 2023 12:29:10 +0200 Subject: [PATCH] 3.2 premier --- DEV3.2/Listes/src/listes.java | 22 ++++++++++++++++++++++ DEV3.2/Tableaux/src/tab.java | 5 +++++ 2 files changed, 27 insertions(+) create mode 100644 DEV3.2/Listes/src/listes.java create mode 100644 DEV3.2/Tableaux/src/tab.java diff --git a/DEV3.2/Listes/src/listes.java b/DEV3.2/Listes/src/listes.java new file mode 100644 index 0000000..65d6b8a --- /dev/null +++ b/DEV3.2/Listes/src/listes.java @@ -0,0 +1,22 @@ +import java.util.ArrayList; + +public class listes { + public static void main(String[] args) + { + ArrayList l1 = new ArrayList(); + l1.add(1); + ArrayList l2 = new ArrayList(); + l2.add(2.5654546f); + ArrayList l3 = new ArrayList(); + l3.add(1); + l3.add(2.5654546f); + l3.add(646L); + + l3.addAll(l2); + + + for (int i = 0; i < l3.size(); i++) { + System.out.println(l3.get(i)); + } + } +} diff --git a/DEV3.2/Tableaux/src/tab.java b/DEV3.2/Tableaux/src/tab.java new file mode 100644 index 0000000..34cf07d --- /dev/null +++ b/DEV3.2/Tableaux/src/tab.java @@ -0,0 +1,5 @@ +public class tab { + public static void main(String[] args) { + + } +}