摘要: java 关键字如下:http://docs.oracle.com/javase/tutorial/java/nutsandbolts/_keywords.html Here is a list of keywords in the Java programming language. You cannot use any of the following as identifiers in your programs. The keywords const and goto are reserved, even though they are not currently used. true 阅读全文
posted @ 2012-08-20 15:03 jinc 阅读(262) 评论(0) 推荐(0) 编辑
摘要: java的8种基本数据类型:类型:bye short int long float double char boolean字节数:1 2 4 84 8 1 ???????对应的封装类是:Byte、Short、Integer、Long、Float、Double、Character、Boolean除了Character、Boolean,最大值和最小值可以通过封装类的MAX_VALUE和MIN_VALUE获得。Character里面MAX_VALUE和MIN_VALUE放的是unicode。Boolean无MAX_VALUE和MIN_VALUE。long float double后缀默认下整型是in 阅读全文
posted @ 2012-08-20 14:09 jinc 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 1.main方法必须是如下形式,即公开、静态、无返回类型。public static void main(String[] args) { } 或者static public void main(String[] args) { }2.程序正常运行,main返回0,也可以通过System.exit方法返回其他值。如System.exit(123)。3.主函数main方法参数必须是String[] 类型,变量名可以自定义。4.IDE中右键-〉Run as-〉Run configurations-〉“(x)=Arguments”标签,配置args参数,或者使用命令,或者配置在程序的启动脚本中。.. 阅读全文
posted @ 2012-08-20 08:58 jinc 阅读(13206) 评论(1) 推荐(0) 编辑
摘要: 方法有三:1.选择工程,在菜单Project->Genarate Javadoc2.选择工程,鼠标右键菜单Export ,选择Java 下面的Javadoc ,点”next” 按钮3.选择工程,在菜单File->Export ,选择Java 下面的Javadoc ,点”next” 按钮javadoc乱码解决这里面有两个指定编码问题的参数1) -encoding charsetName2) -charset charsetName第一个参数表示javadoc 程序读取java源文件时候应该采用什么编码第二个参数表示javadoc 程序写html文件时采用的编码形式,并会在HTML中加 阅读全文
posted @ 2012-08-20 06:56 jinc 阅读(2441) 评论(0) 推荐(0) 编辑