Topic: java源程序及出错信息如下,请教原因!!! |
Print this page |
1.java源程序及出错信息如下,请教原因!!! | Copy to clipboard |
Posted by: gaojihui Posted on: 2005-03-27 12:15 请尽量用准确的文字描述作为标题 It might be helpful to put the error message on the topic, e.g. package system does not exist java源程序及出错信息如下,请教原因!!!本人是新手!!! import java.io.*; public class myjava { public static void main(String args[]) { system.out.println("hello"); } } |
2.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: bluepure Posted on: 2005-03-27 15:45 system --> System 注意大小写。 |
3.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: 8899 Posted on: 2005-03-29 11:28 嘻嘻, 新手啊,我都是 不过还是感谢大家的热心帮助 |
4.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: 2352439 Posted on: 2005-04-18 16:18 尽量不要用纯文本文档写代码 在网下一个 UltraEdit 这个支持Java,可以自动分别大小写 |
5.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: 独孤孤鹄 Posted on: 2005-06-21 18:26 好好先将java中的包机制龙清楚再说吧,你肯定在环境变量设置是出错了 |
6.Re:java源程序及出错信息如下,请教原因!!! [Re: 独孤孤鹄] | Copy to clipboard |
Posted by: why Posted on: 2005-06-23 00:47 独孤孤鹄 wrote: Haven't you read the question carefully? Have you read bluepure's message? |
7.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: 一枝梅 Posted on: 2005-06-23 08:48 类名"myjava"也要大写,保存文件名加引号 |
8.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: truthawp Posted on: 2005-08-04 13:01 有关于CLASS类名是否一定要大写呢? 我在书中看到一道选择题,有这样一个选项:final class operators{.......},题目是:下面那个类定义是错误的,答案上说错的是这个:void class Point{.......},解释是:类没有返回值,也不用void修饰. 当然这是道单选题,也就是说VOID肯定是错的,那么FINAL的那个选项对吗? 我觉得应该要大写的啊? |
9.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: truthawp Posted on: 2005-08-04 20:10 跟在别人帖子后面发问就没人回吗? 我想这个问题正好接下来了,就不发帖子了,高手帮忙看看啊 |
10.Re:java源程序及出错信息如下,请教原因!!! [Re: truthawp] | Copy to clipboard |
Posted by: why Posted on: 2005-08-04 20:27 truthawp wrote: The language specifications does not enforce this, but it's a convention to captialize the first character of a class name. |
11.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: truthawp Posted on: 2005-08-04 21:41 thx, I see |
12.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: javalean Posted on: 2005-08-05 20:28 呵呵。楼主和我一样,路还很长啊。 一般是先学会jdk的安装和环境变量的设置。 然后是学习基础概念和运行书中的例子,推荐使用简单的文本编辑器+jdk,我使用的是textpad,集成了编译和运行java程序功能,十分好用。 再然后是自己给自己找一些小的项目作,这是关键的一步。 最后是参与大的项目。 当然还有无数次的提问,阅读,讨论,交流。 |
13.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: JavaandC Posted on: 2005-08-25 14:32 system.out.println("hello");错了 应该System.out.println("hello"); 新手就慢慢学吧,有的是东西够你学的,学到时候做个项目,项目做成后,就差不多了,不过项目不要做小的呀 |
14.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: huahua325 Posted on: 2005-08-26 09:02 还没有做过java项目 唉....... |
15.Re:java源程序及出错信息如下,请教原因!!! [Re: gaojihui] | Copy to clipboard |
Posted by: heart5 Posted on: 2005-08-26 10:52 慢慢来 没有做过项目的多啦 爱好兴趣决定一切 |
Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1 客服电话 18559299278 客服信箱 714923@qq.com 客服QQ 714923 |