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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// Class anonarray2
2
// Generated on Tue Feb  1 21:14:06 PST 2000
3
// Anonymous array, with a non primitive type.
4
 
5
class anonarray2 {
6
 
7
  static void foo (String [][] x) {
8
      for (int i = 0; i < x.length; i++)
9
          {
10
              for (int j = 0; j < x[i].length; j++)
11
                  System.out.print (x[i][j]);
12
              System.out.println();
13
          }
14
  }
15
 
16
  public static void main (String[] arg)
17
  {
18
      foo (new String[][] {{"2","3"},{"5","7"}});
19
      System.out.println ((new String [][] {{"11","13"},{"17","19"}}).length);
20
      System.out.println ((new String [][] {{"23","29"},{"31","37"}})[0][1]);
21
  }
22
}

powered by: WebSVN 2.1.0

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