say.java:7:找不到符号

[复制链接]
查看11 | 回复4 | 2009-4-25 15:02:54 | 显示全部楼层 |阅读模式
代码如下
/*

这是我的第一个实验程序

*/

public class say{

public static void main(String[] args){

//打印内容.

System.out.printIn("hello,this is my first app");

}

}
say.java:7:找不到符号
符号:方法 printIn(java.lang.String)
位置:类 java.io.PrintStream

System.out.printIn("hello,this is my first app");
1错误

回复

使用道具 举报

千问 | 2009-4-25 15:02:54 | 显示全部楼层
println()这个输出方法名写错了
是l不是i, 小写 不是大写
LZ 刚开始学java啊
加油啊开始的时候这种错误经常犯...
回复

使用道具 举报

千问 | 2009-4-25 15:02:54 | 显示全部楼层
println,p和l都是小写,后面那个是l二不是i...
回复

使用道具 举报

千问 | 2009-4-25 15:02:54 | 显示全部楼层
你只是犯了一个小错误而已,不用灰心。你把println错写成了printIn,注意,倒数第二个字母是小写的l而不是大写的I.祝你好运!...
回复

使用道具 举报

千问 | 2009-4-25 15:02:54 | 显示全部楼层
/* 这是我的第一个实验程序 */ public class say{ public static void main(String[] args){//打印内容System.out.println("hello,this is my first app");} } 试下吧! 你的println打错了!...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行