mirror of
https://gitflic.ru/project/openide/openide.git
synced 2025-12-16 22:51:17 +07:00
16 lines
230 B
Java
16 lines
230 B
Java
import java.util.*;
|
|
public class Super<T> {
|
|
|
|
void <caret>foo() {
|
|
List<T> l = new ArrayList<T>();
|
|
for (T t : l) {
|
|
System.out.println(t);
|
|
}
|
|
}
|
|
}
|
|
|
|
class Test extends Super<String>{
|
|
void bar() {
|
|
foo();
|
|
}
|
|
} |