1 public class ArrayStore
3 public static void main(String[] args)
5 ArrayStore s = new ArrayStore();
7 /* Check that bounds check takes precedence over array store check. */
14 System.out.println (x.getClass().getName());
23 System.out.println (x.getClass().getName());
26 /* Check that += operator on String[] element works and throws bounds
34 System.out.println (x.getClass().getName());
37 String[] sb = new String[2];
40 System.out.println (sb[1]);
45 oa[1] = new Integer(2);