Help me please arraylist | Sololearn: Learn to code for FREE!

+1

Help me please arraylist

ArrayList in java https://code.sololearn.com/c3o1Ooqm4CHa/?ref=app

8/28/2017 11:03:47 PM

Saïd Kamal

2 Answers

New Answer

+4

import java.util.ArrayList; import java.util.List; public class myArraylist { public static void main(String[] args) { List<Integer> myArray = new ArrayList<Integer>(); myArray.add(10); myArray.add(20); myArray.add(30); myArray.add(40); myArray.add(50); for(Integer i: myArray) { System.out.println(i); } } }

+3

thank you my friend