Master the art of code
-
Featured
My First Blog Post
Be yourself; Everyone else is already taken. — Oscar Wilde. This is the first post on my new blog. I’m just getting this new blog going, so stay tuned for more. Subscribe below to get notified when I post new updates.
-
Java Collections: Comparable vs Comparator
In Java we can use a Comparable or Comparator interface to sort a collection. Both interfaces have some differences you should know in order for you to make the right decision. Comparable Interface We can only sort the collection by a single member of an element. Comparable affects the current object being sorted. Override compareTo()… Read more
-
Java Collections: Map
Map Interface What is a map in java? In java map is an interface that extends the collection interface. A map structures its elements in a unique key value pair by using a hash table data structure. A map is unordered by default. Map can be implemented by TreeMap, HashMap, and LinkedHashMap classes. HashTable A… Read more
Follow My Blog
Get new content delivered directly to your inbox.