Skip to content

Commit 57846c0

Browse files
Add files via upload
1 parent 60d4752 commit 57846c0

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

InnnerClass6.java

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

0 commit comments

Comments
 (0)