我在尝试编译一个简单的Java程序时遇到了此错误消息。我知道堆栈上已经有这个问题了,但是解决方案(在编译程序时我忘了包括.java后缀)对我仍然不起作用。这是程序:import java.io.Console; public class Introductions { public static void main(String[] args) { Console console = System.console(); // Welcome to the Introductions program! Your code goes below here String firstName = "Paul"; console.printf("Hello, my name is %s\n", firstName); console.printf("%s this is learning how to write Java\n", firstName); } }
添加回答
举报
0/150
提交
取消