This commit is contained in:
Rémi Heredero 2021-11-29 07:51:10 +01:00
parent f1f92e345b
commit e9a3803897

View File

@ -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);
}
}
}