This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
I am working through the study guide for SCJP. On the first example I created a class:
public class Fruit { System.out.println("Inside Fruit class");
}
It won't compile! cannot find symbol: class out location: java.lang.System.out
I imported java.lang.*; and that doesn't help. In the class with the main method, I can use System.out.println("Inside Main") with no imports. What is the difference?