+ 1
Help me please arraylist
ArrayList in java https://code.sololearn.com/c3o1Ooqm4CHa/?ref=app
2 Respostas
+ 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