免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3315 | 回复: 10
打印 上一主题 下一主题

helloworld运行错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-11 17:23 |只看该作者 |倒序浏览
弱弱的问个问题新配置Eclipse+JDK 运行
package example;

public class helloworld {

        /**
         * @param args
         */
        public static void main(String[] args) {
                System.out.println"Hello, world.")
        }

}
出现、
Syntax error on token "println", ( expected after this token
        Syntax error, insert ";" to complete BlockStatements

        at example.helloworld.main(helloworld.java:9)
Exception in thread "main"
错误。请问有什么解决办法。

论坛徽章:
0
2 [报告]
发表于 2006-06-11 20:34 |只看该作者
晕,丢了个(

论坛徽章:
0
3 [报告]
发表于 2006-06-12 10:45 |只看该作者
public class Helloworld
{
    public static void main (String args[])
    {
        System.out.println("Helloworld");
    }
}

[ 本帖最后由 1985anubis 于 2006-6-16 15:42 编辑 ]

论坛徽章:
0
4 [报告]
发表于 2006-06-12 13:01 |只看该作者
I 服了 U

论坛徽章:
0
5 [报告]
发表于 2006-06-12 16:12 |只看该作者
少括号,后面没“;”号

论坛徽章:
0
6 [报告]
发表于 2006-06-12 16:40 |只看该作者
晕死了
I 付 you

论坛徽章:
0
7 [报告]
发表于 2006-06-12 17:51 |只看该作者
哎,还是自己先检查下吧,这种大错字,少标点的错误不容易发现

论坛徽章:
0
8 [报告]
发表于 2006-06-13 15:09 |只看该作者

好好努力LZ

论坛徽章:
0
9 [报告]
发表于 2006-06-14 02:54 |只看该作者
比我都还不如

论坛徽章:
0
10 [报告]
发表于 2006-06-28 18:32 |只看该作者
仔细点,看看错误提示,语法错误一般还是比较明显
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP