Calculating the difference of days between two dates in Java



Hello,everyone! I used the Date class to create two dates by invoking the constructor Date(long date), but can anybody tell me how to calculate the difference of days between these two dates? Which methods should I use? Thank you!!


.