摘要: import java.math.BigDecimal; public class Test{ public static void main(String[] args){BigDecimal a = new BigDecimal(Double.toString(2.0));BigDecimal 阅读全文
posted @ 2018-05-21 21:43 0扬帆启航0 阅读(175) 评论(0) 推荐(0) 编辑
摘要: public class 类名{ static boolean foo(char c) { System.out.print(c); return true; } public static void main( String[] argv ) { int i =1; for ( foo('A'); 阅读全文
posted @ 2018-05-21 15:41 0扬帆启航0 阅读(591) 评论(1) 推荐(0) 编辑
摘要: public class 文件名 { /** *十进制转二进制. */ public static void main ( String args[] ) { // 无返回参数的方法直接运行 printBinary(2); } static void printBinary(int i) { Sys 阅读全文
posted @ 2018-05-21 10:20 0扬帆启航0 阅读(87) 评论(0) 推荐(0) 编辑