Here you can find the source of getInterval(ArrayList
public static Integer getInterval(ArrayList<Timestamp> times)
//package com.java2s; //License from project: Apache License import java.sql.Timestamp; import java.util.ArrayList; public class Main { public static Integer getInterval(ArrayList<Timestamp> times) { int min = Integer.MAX_VALUE; int max = Integer.MIN_VALUE; System.out.printf("Printing %s\n" + times.get(0).toString()); System.out.printf("Printing %s\n" + times.get(times.size() - 1).toString()); Integer length = times.size(); return length; }// w ww . j ava2 s . c o m }