Java 非法的类型开始 和 需要标识符 5
N_arithmetic_progression.java:10:错误:需要<标识符>System.out.println("Thefirstterm:");^N_ari...
N_arithmetic_progression.java:10: 错误: 需要<标识符>
System.out.println("The first term:");
^
N_arithmetic_progression.java:10: 错误: 非法的类型开始
System.out.println("The first term:");
^
N_arithmetic_progression.java:13: 错误: 需要<标识符>
System.out.println("Equal difference:");
^
N_arithmetic_progression.java:13: 错误: 非法的类型开始
System.out.println("Equal difference:");
^
N_arithmetic_progression.java:16: 错误: 需要<标识符>
System.out.println("Nth term:");
^
N_arithmetic_progression.java:16: 错误: 非法的类型开始
System.out.println("Nth term:"); 展开
System.out.println("The first term:");
^
N_arithmetic_progression.java:10: 错误: 非法的类型开始
System.out.println("The first term:");
^
N_arithmetic_progression.java:13: 错误: 需要<标识符>
System.out.println("Equal difference:");
^
N_arithmetic_progression.java:13: 错误: 非法的类型开始
System.out.println("Equal difference:");
^
N_arithmetic_progression.java:16: 错误: 需要<标识符>
System.out.println("Nth term:");
^
N_arithmetic_progression.java:16: 错误: 非法的类型开始
System.out.println("Nth term:"); 展开
展开全部
我猜是不是你没有main方法,这些代码需要放在public static void main(strings [])
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询