// Immutable class -- cannot be changed import java.util.*; public class Str2 { private List data; public Str2() { data = new ArrayList(); } public Str2(char[] in) { data = new ArrayList(); for(int i=0;i