Skip to content

Commit 60d4752

Browse files
Add files via upload
1 parent cde7219 commit 60d4752

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

InnnerClass5.java

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
public class InnnerClass5<T> {
2+
3+
T my_Method(T item){
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+
return item;
17+
}
18+
19+
public static void main(String[] args) {
20+
InnnerClass5<String> outer = new InnnerClass5<String>();
21+
System.out.println(outer.my_Method("My Method"));
22+
}
23+
24+
}

0 commit comments

Comments
 (0)