Skip to content

Commit cde7219

Browse files
Add files via upload
1 parent f484392 commit cde7219

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

InnnerClass4.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
public class InnnerClass4<T> {
2+
3+
void my_Method(){
4+
5+
int num = 23;
6+
7+
class MethodInner<V> {
8+
public void print() {
9+
System.out.println("This is method inner class "+num);
10+
}
11+
}
12+
13+
MethodInner<String> inner = new MethodInner<String>();
14+
inner.print();
15+
}
16+
17+
public static void main(String[] args) {
18+
InnnerClass4<String> outer = new InnnerClass4<String>();
19+
outer.my_Method();
20+
}
21+
22+
}

0 commit comments

Comments
 (0)