为了账号安全,请及时绑定邮箱和手机立即绑定

仅当显式请求注释处理时,才接受类名“ Introductions”

仅当显式请求注释处理时,才接受类名“ Introductions”

www说 2021-04-09 17:15:31
我在尝试编译一个简单的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);      }    }
查看完整描述

1 回答

  • 1 回答
  • 0 关注
  • 295 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信