An array is a container that holds a fixed number of values, a bit like a spreadsheet table. With arrays we can store multiple variables of the same type, and access them easily.
...
Code Block |
---|
ArrayList<Integer> numberList; numberList = new ArrayList<Integer>(); println(numberList.size()); for(int i=0;i < 10;i++) { numberList.add(i * 2); } println(numberList); zahlenListnumberList.add(100); println(numberList.size()); println(numberList); numberList.remove(0); println(numberList.size()); println(numberList); println(numberList.get(0)); |
...