【发布时间】:2017-04-16 10:34:26
【问题描述】:
当我尝试执行以下代码时出现错误:
package Abc;
public class Class3 {
public void another() {
System.out.println("Hello World");
}
public static void main(String[] args) {
Class3 obj1 = new Class3();
System.out.println(obj1.another());
}
}
错误是:
The method println(boolean) in the type PrintStream is not applicable for the arguments (void)
【问题讨论】:
标签: java