April 13, 2004

Check for Duplicates in an ArrayList

This is a simple method to check for duplicates in an ArrayList: checkDuplicate : Methodpublic static boolean checkDuplicate(ArrayList list) { HashSet set = new HashSet(); for (int i = 0; i < list.size(); i++) { boolean val = set.add(list.get(i)); if (val == false) { return val; } } return true;}

PostgreSQL vs. MySQL vs. Commercial Databases: It’s All About What You Need

he database server is a fixture in almost every business these days. The common commercial databases, such as Oracle, Microsoft’s SQL Server, and IBM’s DB2 server, include many features that people have come to rely on to make their database servers “enterprise worthy”. These features include advanced database storage, data