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