ex3
Fri May 26 2023 12:35:26 GMT+0000 (Coordinated Universal Time)
Saved by
@gokulz
import java.util.ArrayList;
public class Example {
public static void main(String[] args) {
// creating the list of integer type
ArrayList <Integer> numList = new ArrayList<>();
// add elements to the arraylist
numList.add(0);
numList.add(1);
numList.add(2);
numList.add(3);
numList.add(4);
}
}
content_copyCOPY
Comments