This commit is contained in:
parent
f1f92e345b
commit
e9a3803897
19
src/C08_Structures_de_donnees/C082_Tableaux/Exercice1.java
Normal file
19
src/C08_Structures_de_donnees/C082_Tableaux/Exercice1.java
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user