/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
List<Bar> list = new ArrayList<Bar>();
list.add(new Bar());
Ideone.hoge(list);
}
static <T extends Foo> void hoge(List<T> list) {
list.get(0).p();
}
static interface Foo {
void p();
}
static class Bar implements Foo {
public Bar() {}
@Override
public void p
() { System.
out.
println("p"); } }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCUxpc3Q8QmFyPiBsaXN0ID0gbmV3IEFycmF5TGlzdDxCYXI+KCk7CgkJbGlzdC5hZGQobmV3IEJhcigpKTsKCQlJZGVvbmUuaG9nZShsaXN0KTsKCX0KCQoJc3RhdGljIDxUIGV4dGVuZHMgRm9vPiB2b2lkIGhvZ2UoTGlzdDxUPiBsaXN0KSB7CgkJbGlzdC5nZXQoMCkucCgpOwoJfQoJCglzdGF0aWMgaW50ZXJmYWNlIEZvbyB7CgkJdm9pZCBwKCk7Cgl9CglzdGF0aWMgY2xhc3MgQmFyIGltcGxlbWVudHMgRm9vIHsKCQlwdWJsaWMgQmFyKCkge30KCQlAT3ZlcnJpZGUKCQlwdWJsaWMgdm9pZCBwKCkgeyBTeXN0ZW0ub3V0LnByaW50bG4oInAiKTsgfQoJfQoJCgoJCgkKfQ==