diff --git a/src/C08_Structures_de_donnees/C082_Tableaux/Exercice1.java b/src/C08_Structures_de_donnees/C082_Tableaux/Exercice1.java new file mode 100644 index 0000000..073f5b6 --- /dev/null +++ b/src/C08_Structures_de_donnees/C082_Tableaux/Exercice1.java @@ -0,0 +1,19 @@ +package C08_Structures_de_donnees.C082_Tableaux; + +public class Exercice1 { + public static void main(String[] args) { + + int[] foo = {10, 11, 12}; + for (int i = 0; i < foo.length; i++) { + System.out.println(foo[i]); + } + + String[] bar = new String[3]; + bar[0] = "Hello"; + bar[1] = bar[0]; + for (String string : bar) { + System.out.println(string); + } + + } +}