Будем честными ...
2 года назад
Когда исчезает магия, появляется понимание
public class X
{
<T extends X> T f1() throws Exception
{
return null;
}
<U extends X> U f2() throws Exception
{
return f1();
}
}X.java:6: type parameters of <T>T cannot be determined; no unique maximal instance exists for type variable T
with upper bounds U,X
return f1();
^
int i, j = 0;
label: for (i = 0; i < 10; i++)
{
for (j = 0; j < 10; j++)
{
if (i == 5 && j == 5)
{
break label;
}
}
}
System.out.println(i + " " + j);
label: for (int i = 0; i < 10; i++)
{
for (int j = 0; j < 10; j++)
{
if(i == 5)
continue label;
}
System.out.println(i);
}
public static void main(String args[])
{
http://dr-magic.blogspot.com/
System.out.println("Hello World!");
}
public class Example {
public class MemberOfExample {
public void test() {
System.out.println("Hello, my dear friend!");
}
}
}
public class Main {
public static void main(String[] args) {
Example example = new Example();
MemberOfExample member = example.new MemberOfExample();
member.test();
}
}