下面代码是什么意思?[code="java"]public boolean test(double x){return x <= 1.0;}[/code]
楼主想多了,<=就是“小于或等于”,并非什么特殊符号
你这个方法就是判断x是否小于或者等于1.0