class Test{
public void a(){}
public static void main(String[] args){
Test b=new Test();
System.out.println(b.a()); //error
}
}
The method println(boolean) in the type PrintStream is not applicable for the arguments (void)
控制台输出(println)不能打印一个空参数(void)的方法