aLT22

Untitled

Dec 7th, 2014
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.32 KB | None | 0 0
  1. import java.util.ArrayList;
  2. class Main{
  3.     public static void main (String[] args){
  4.         ArrayList<Integer> mas = new ArrayList<Integer>();
  5.         mas.add(5);
  6.         mas.add(10);
  7.         mas.add(15);
  8.         for (int i = 0; i < mas.size (); i++) {
  9.             System.out.print(mas(i) + ' ');
  10.         }
  11.     }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment