1.java 队列queue的使用 http://www.runoob.com/java/data-queue.html 2.java中浮点数不能直接使用==比较 要使用Math.abs(a,b)<一个极小的值(比如0.000001) ……