We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cde7219 commit 60d4752Copy full SHA for 60d4752
1 file changed
InnnerClass5.java
@@ -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