比较double a=1,double b=1.0 a等于b否?
public class Test {public static void main(String args[]){ double a=1,b=1.0; System.out.println(a==b); //呵呵,刚开始在书上看到这题目,还真有点不确定呢!结果是true啦!}}转载于:https://www.cnblogs.com/f...