I am not able to understand why this code doesn\'t compile:
class A { public static void main(String[] args) { System.out.println(\"hi\"); } } p
B needs to be private to something. Place it within the definition of class A or create another file, B.java, and define it there, but then it cannot be private.