Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- public class ArrayListDemo {
- public static void main(String[] args) {
- int a = 7;
- int b = 4;
- int c = 2;
- int d = 81;
- int e = 9;
- int f = 11;
- int g = 24;
- int h = 16;
- ArrayList<Integer> list = new ArrayList<Integer>();
- list.add(a);
- list.add(b);
- list.add(c);
- list.add(d);
- list.add(e);
- list.add(f);
- list.add(g);
- list.add(h);
- System.out.println(list);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement