是呀...紫竹. Con 是公共的?? 不让建的哦。.. 给解答下哦。.谢谢。.学习ING. 过年也要刻苦学习
试过了~ java6 U4下编译运行,就是显示一个CSDN
有学过DOS的吗? 应该能看出门道!!!
答案: 你根本不能创建一个名字为Con的.java文件,在ecilispe里面,如果类名被修改为Con,会出现 A class file was not written. The project may be inconsistent, if so try refreshing this project and building it 下面是其他的一些保留字,在Windows下面都不能创建。注意,不许分大小写。Con,con,CON 都不可以!con是操作系统保留的一个设备名字,还有很多设备名都不能拿来用,如下:
The following reserved device names cannot be used as the name of a file: CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names followed by an extension (for example, NUL.tx7). 如果在10年前,早就想到了,可惜太长的时间没有用DOS了,这些基本知识已经忘掉了!!!!
如果不用static了 说明进步了
加上static ,打出来的是CSDN
JDK 6.0 u4
实践是检验真理的唯一标准
public class con{
CSDN
啥意思,我的类叫Con,不是con.
Con 是公共的??
不让建的哦。..
给解答下哦。.谢谢。.学习ING.
过年也要刻苦学习
java6 U4下编译运行,就是显示一个CSDN
你根本不能创建一个名字为Con的.java文件,在ecilispe里面,如果类名被修改为Con,会出现
A class file was not written. The project may be inconsistent, if so try refreshing this project and building it 下面是其他的一些保留字,在Windows下面都不能创建。注意,不许分大小写。Con,con,CON 都不可以!con是操作系统保留的一个设备名字,还有很多设备名都不能拿来用,如下:
The following reserved device names cannot be used as the name of a file: CON, PRN, AUX, CLOCK$, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, and LPT9. Also avoid these names followed by an extension (for example, NUL.tx7).
如果在10年前,早就想到了,可惜太长的时间没有用DOS了,这些基本知识已经忘掉了!!!!
不知道怎么搞的。
晕倒
我用的是Linux Fedora core 6
在这个系统下面的确是是输出CSDN。
计算机学博大精深,的确很难熟谙么每个细节,今天又学到一个东西,呵呵。~
好像就这5个设备文件吧,记不得了。还是main方法的参数有趣:String... args