1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
| public class Test {
public static void main(String[] args) { List<String> c = new ArrayList<>(); c.add("123"); c.add("223"); c.add("325"); c.add("424");
for (String s : c) { System.out.println(s); }
int[] i = new int[]{1, 2, 3, 4}; for (int ii : i) { System.out.println(ii); } } }
|