correction
This commit is contained in:
parent
f9fa89a97f
commit
86dff9c930
@ -1,13 +1,14 @@
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
public class listes {
|
public class listes {
|
||||||
public static void main(String[] args)
|
public static void main(String[] args)
|
||||||
{
|
{
|
||||||
ArrayList<Integer> l1 = new ArrayList<Integer>();
|
List<Integer> l1 = new ArrayList<Integer>();
|
||||||
l1.add(1);
|
l1.add(1);
|
||||||
ArrayList<Float> l2 = new ArrayList<Float>();
|
List<Float> l2 = new ArrayList<Float>();
|
||||||
l2.add(2.5654546f);
|
l2.add(2.5654546f);
|
||||||
ArrayList<Number> l3 = new ArrayList<Number>();
|
List<Number> l3 = new ArrayList<Number>();
|
||||||
l3.add(1);
|
l3.add(1);
|
||||||
l3.add(2.5654546f);
|
l3.add(2.5654546f);
|
||||||
l3.add(646L);
|
l3.add(646L);
|
||||||
|
Loading…
Reference in New Issue
Block a user