class MyGeneric<T>
{
static int i;
---- Other stuff ----
}
class TestGeneric
{
public static void main(
String[] args)
{
System.out.println(MyGeneric<String>.i);
}
}
Gives a compile-time error:
illegal start of expression - System.out.println(MyGeneric<String>.i);
^
What is the problem?