Java 2013 05 01 — различия между версиями
Материал из SEWiki
Antonk (обсуждение | вклад) (Новая страница: «'''0. ''' <source lang="java"> import java.util.ArrayList; public class Example01 { public static void main(String[] args) { ArrayList test = new ArrayList(); …») |
(нет различий)
|
Текущая версия на 00:04, 27 марта 2013
0.
import java.util.ArrayList;
public class Example01 {
public static void main(String[] args) {
ArrayList test = new ArrayList();
test.add("test");
test.add(3);
test.add(3.0);
test.add((Object)2);
for (int i = 0; i < test.size(); i++)
System.out.println((String)test.get(i));
}
}