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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// Test to make sure multidimensional arrays work.
2
// From Bryce McKinlay
3
 
4
public class Array_2
5
{
6
  static final int a = 10, b = 15;
7
 
8
  public static void main(String args[])
9
  {
10
    int[][] foo = new int [a][b];
11
    System.out.println(foo.length);
12
    System.out.println(foo[a-1].length);
13
  }
14
}

powered by: WebSVN 2.1.0

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