I started learning Java and there was an error in line 2: "Small cannot be resolved to a type". Why?
public class Big {
public Small getSmall() {
return new Small() {
void out() {
System.out.println("Big Small out()");
}
};
}
public static void main(String[] args) {
Big b = new Big();
Small s = b.getSmall();
s.out();
System.exit(0);
}
}