inner_1.java

来自「this gcc-g++-3.3.1.tar.gz is a source fi」· Java 代码 · 共 37 行

JAVA
37
字号
// inner class regression test.package bar.foo;class other {  class foo {}}class inner_1 {    static void bar () {        inner_1 xxxx;			// Refers to inner_1	bar.foo.another xyz;		// Refers to non inner another 	bar.foo.other.foo X;		// OK to declare, inner class foo	bar.foo.inner_1.t bar;		// Inner class t	inner_1.t foo;			// Inner class t	t foobar;			// Inner class t	other.foo zag;			// Valid for declaration.	t.ungah x;    }    void foo () {	// z.t.u foo;	t t1 = new t();        t1.print (); 	new t().print();    }    class t {	void print () {	    System.out.println ("This is `inner_1.t'");	}	class ungah {}    }}class another {} 

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?