Question: how to find the difference between two timestamps in java?
Answer: get(timeSt. size()-1); // This method aims finding the difference of the first and the last elements(timestamps) of the ArrayList (in seconds) long i = Long. parseLong(a); long j = Long. parseLong(b); long diff = j.