private boolean compareTimeLists(List<DateTime> timesA, List<DateTime> timesB) { if (timesA.size() != timesB.size()) return false; Collections.sort(timesA); Collections.sort(timesB); for (int i = 0; i < timesA.size(); i++) { DateTime a = timesA.get(i); DateTime b = timesB.get(i); double test = Math.abs(a.getValue() - b.getValue()); if (test > 65.0) return false; // System.out.println("TTTTTTT = " + test ); } return true; }