Czy ma ktoś pomysł czemu metoda contents() nie wyświetla mi liczby 11 ? Wszystko się kompiluje, tylko nie rozumiem czemu nie wyświetla mi tej liczby.
public class Parcel7 {
public Contents contents()
{
return new Contents()
{
private int i=11;
public int value() {
return i;
}
};
}
}
public static void main(String[] args) {
Parcel7 pc7 = new Parcel7();
pc7.contents();
}