File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes compare data from ArrayList Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "compare data from ArrayList" Watch "compare data from ArrayList" New topic

compare data from ArrayList

Rajeev Ja
Ranch Hand

Joined: May 06, 2007
Posts: 38
I have some dates in database
i got system date new Date();
i have to check for equality between them and
do some task how can i do
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 15084

1. Get the dates from the database (for example using JDBC)
2. Use the methods in the classes java.util.Date or java.util.Calendar to compare dates (see the API documentation)

Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 8 API documentation
I agree. Here's the link:
subject: compare data from ArrayList
jQuery in Action, 3rd edition