3.2 premier
This commit is contained in:
parent
1e3fad56ad
commit
a7d3b4e407
22
DEV3.2/Listes/src/listes.java
Normal file
22
DEV3.2/Listes/src/listes.java
Normal file
@ -0,0 +1,22 @@
|
||||
import java.util.ArrayList;
|
||||
|
||||
public class listes {
|
||||
public static void main(String[] args)
|
||||
{
|
||||
ArrayList<Integer> l1 = new ArrayList<Integer>();
|
||||
l1.add(1);
|
||||
ArrayList<Float> l2 = new ArrayList<Float>();
|
||||
l2.add(2.5654546f);
|
||||
ArrayList<Number> l3 = new ArrayList<Number>();
|
||||
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));
|
||||
}
|
||||
}
|
||||
}
|
5
DEV3.2/Tableaux/src/tab.java
Normal file
5
DEV3.2/Tableaux/src/tab.java
Normal file
@ -0,0 +1,5 @@
|
||||
public class tab {
|
||||
public static void main(String[] args) {
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user