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

Subversion Repositories openrisc

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

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 765 jeremybenn
// Class inner_interface
2
// Generated on Fri Feb 11 16:29:04 PST 2000
3
// Simple inner interface example.
4
 
5
class inner_interface {
6
  interface bar {
7
      static final int field = 14022000;
8
      public void inner_interface ();
9
  }
10
 
11
  class baz implements inner_interface.bar {
12
    public void inner_interface ()
13
    {
14
      System.out.println ("This is baz.inner_interface "+field);
15
    }
16
  }
17
 
18
  void x () {
19
      this.new baz ().inner_interface ();
20
  }
21
 
22
  public static void main (String[] arg)
23
  {
24
    System.out.println ("Testing class `inner_interface'...");
25
    new inner_interface ().x();
26
  }
27
}

powered by: WebSVN 2.1.0

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