// 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.Arrays;
import java.util.List;

public class Backing {
    public static void main(String[] args) {
        String[] sa = { "A", "BB", "CCC", "DDDD" };
        List<String> sl = Arrays.asList(sa).subList(1, 3);
        sl.set(0, "BBX");
        sl.set(1, "CCCX");
        for(String s : sa) {
            System.out.println(s);
        }
    }
}
