28th Aug 2017, 11:03 PM
Saïd Kamal
Saïd Kamal - avatar
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); } } }
28th Aug 2017, 11:22 PM
ChaoticDawg
ChaoticDawg - avatar
+ 3
thank you my friend
28th Aug 2017, 11:30 PM
Saïd Kamal
Saïd Kamal - avatar