how to get distinct names from a table
posted 2 years ago
Create a Collection which does not allow duplicates. Iterate all the element in the table and add them to the Collection. The Collection would then have only unique names. See http://docs.oracle.com/javase/tutorial/collections/ and the API for the known subinterfaces of Collection (http://docs.oracle.com/javase/7/docs/api/java/util/Collection.html) to pick which Collection might be best to use.