You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

InterfaceArrayCast.java 180B

12345678910111213
  1. class A {}
  2. interface I {}
  3. public class InterfaceArrayCast {
  4. public static void main(String[] args) {}
  5. void foo(A[] as, I i) {
  6. A[] as1 = (A[])i;
  7. I i1 = (I)as;
  8. }
  9. }