// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
import java.util.ArrayList;
import java.util.List;

public class It {
    public static void main(String[] args) {
        int[] a = { 1, 2, 3 };
        for(int i : a) {
            System.out.println(i);
        }
        List<Integer> lst = new ArrayList<Integer>();
        lst.add(1);
        lst.add(2);
        lst.add(3);
        for(int i : lst) {
            System.out.println(i);
        }
        String s = "ABC";
        for(int i : s.toCharArray()) {
            System.out.println(i);
        }
        for(char i : s.toCharArray()) {
            System.out.println(i);
        }
    }
}
