//效率检测 long lasting = System.currentTimeMillis(); long lasting2 = System.currentTimeMillis(); System.out.println("用时"+(lasting2 - lasting)+"ms");