Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import java.util.ArrayList;
- class Main{
- public static void main (String[] args){
- ArrayList<Integer> mas = new ArrayList<Integer>();
- mas.add(5);
- mas.add(10);
- mas.add(15);
- for (int i = 0; i < mas.size (); i++) {
- System.out.print(mas(i) + ' ');
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment