correction

This commit is contained in:
Simon SAYE BABU 2023-12-21 10:54:31 +01:00
parent f9fa89a97f
commit 86dff9c930

View File

@ -1,13 +1,14 @@
import java.util.ArrayList;
import java.util.List;
public class listes {
public static void main(String[] args)
{
ArrayList<Integer> l1 = new ArrayList<Integer>();
List<Integer> l1 = new ArrayList<Integer>();
l1.add(1);
ArrayList<Float> l2 = new ArrayList<Float>();
List<Float> l2 = new ArrayList<Float>();
l2.add(2.5654546f);
ArrayList<Number> l3 = new ArrayList<Number>();
List<Number> l3 = new ArrayList<Number>();
l3.add(1);
l3.add(2.5654546f);
l3.add(646L);