摘要: output: 阅读全文
posted @ 2019-07-25 17:10 嵌入式实操 阅读(86) 评论(0) 推荐(0)
摘要: 使用BiDecimal类是了为防止运算时精度丢失: output: 阅读全文
posted @ 2019-07-25 17:03 嵌入式实操 阅读(160) 评论(0) 推荐(0)
摘要: output: 阅读全文
posted @ 2019-07-25 16:42 嵌入式实操 阅读(155) 评论(0) 推荐(0)
摘要: output: //取整,返回小于目标数的最大整数System.out.println(Math.floor(-1.2));// 取整,返回在于目标数的最大整数System.out.println(Math.ceil(1.2));// 四舍五入取整System.out.println(Math.round(1.6));System.out.println(Math.round(1.5));Sys... 阅读全文
posted @ 2019-07-25 16:31 嵌入式实操 阅读(174) 评论(0) 推荐(0)
摘要: output: 阅读全文
posted @ 2019-07-25 16:09 嵌入式实操 阅读(108) 评论(0) 推荐(0)
摘要: output: 阅读全文
posted @ 2019-07-25 16:03 嵌入式实操 阅读(155) 评论(0) 推荐(0)
摘要: output: 阅读全文
posted @ 2019-07-25 15:28 嵌入式实操 阅读(2613) 评论(0) 推荐(0)
摘要: output: 阅读全文
posted @ 2019-07-25 15:21 嵌入式实操 阅读(102) 评论(0) 推荐(0)
摘要: output: 阅读全文
posted @ 2019-07-25 15:09 嵌入式实操 阅读(1134) 评论(0) 推荐(0)
摘要: var rt = Runtime.getRuntime(); // 类c语言当中的system()函数。 rt.exec("notepad.exe"); 阅读全文
posted @ 2019-07-25 14:54 嵌入式实操 阅读(171) 评论(0) 推荐(0)
摘要: output: 阅读全文
posted @ 2019-07-25 14:52 嵌入式实操 阅读(521) 评论(0) 推荐(0)
摘要: output: 阅读全文
posted @ 2019-07-25 14:39 嵌入式实操 阅读(146) 评论(0) 推荐(0)
摘要: 通过System.getenv( ) 获取环境变量 通过System.getProperties() 获取系统属情 通过System.currentTimeMillis() System.nanoTime() 获取系统时间毫秒及纳秒 阅读全文
posted @ 2019-07-25 14:33 嵌入式实操 阅读(1290) 评论(0) 推荐(0)
摘要: 通过Scanner类,获取键盘的输入 阅读全文
posted @ 2019-07-25 14:27 嵌入式实操 阅读(130) 评论(0) 推荐(0)