In Chapter 3 Lexical Structure of JLS, under the section 3.10.5
String Literals, I tried to compile the 2 compilation units.
But I got this error msg.
Test.java:8: hello is not public in other.Other; cannot be accessed from outside package
System.out.print((other.Other.hello == hello) + " ");
Did anyone else got this same error msg?
I know i can just make the static String hello public to make this work.
Is this what we are supposed to do or am I missing something else?
Thanks