随笔分类 -  Java

这是我的事业
摘要:我用的是64位的windows7旗舰版,jdk1.7 64位机器上可以同时运行32位和64位的Eclipse,但是电脑中必须有相应的jdk。Eclipse虽然不需要安装,但是在启动时会检查系统中固定文件夹下是否有合适的jre。例如32位Eclipse会检查 C:/program files(x8... 阅读全文
posted @ 2014-04-15 20:23 Birding 阅读(4963) 评论(0) 推荐(0)
摘要:刚学习Java时第一个接触的method就是System.out.println() 方法。但是最近在使用它输出一些变量时出现了我不理解的现象,首先上代码: 1 /* 2 * 3 * using method System.out.println/print 4 * 5 * 6 */ 7 c... 阅读全文
posted @ 2014-04-14 17:15 Birding 阅读(6151) 评论(0) 推荐(0)
摘要:1 /* 2 * 3 * test the accuracy change of conversion from float to dobule 4 * 5 */ 6 public class TestFloat{ 7 8 public static void main(String[] args){ 9 float f1 = 2.2f;10 System.out.printf("before conversion float1 : %10.9f \n" , f1);11 float f3 = f1;1... 阅读全文
posted @ 2014-04-12 23:55 Birding 阅读(869) 评论(0) 推荐(1)