This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hi, This is because System.out.println() expects either of the "boolean,char,char ,double ,float ,int,long,Object,String". Your method testCloo() returns void and hence the compiler error mentions that method returning void can not be used here.