OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libjava/] [testsuite/] [libjava.lang/] [G19990302_02.java] - Blame information for rev 765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
public class G19990302_02 {
2
  public static void main(String args[]) {
3
    try {
4
      Object[] arrayObj = new String[3];
5
      String[] arrayStr = new String[3];
6
      System.out.println ("Pass 1");
7
      arrayObj[0] = arrayStr; // String object <-- String array object
8
      System.out.println ("Pass 2");
9
    } catch (ArrayStoreException e) {
10
      System.out.println ("ArrayStoreException");
11
    }
12
    System.out.println ("Pass 3");
13
  }
14
}
15
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.