Shidhar

10 Flips | 2 Magazines | @Shidhar2015 | Open Source Lover, Programmer, Blogger learnfromexamples.com

Big Question with Java Enum and String – Java Enum is not a Collection of Strings? – Can we convert String to Java Enum?

Can we convert String to Enum?<p>­­We have already discussed about Basics of Enum and important functions of Enum. Now we will see how to <b>convert String</b> …

Important Functions You Should Know From Java Enum

Set Interface and HashSet Implementation

When we discuss about Set, one word must come to our mind is <b>uniqueness</b> i.e Set will <b>not</b> <b>allow duplicates</b>.<p>Set will allow null value, but it will allow …

ListIterator Interface

We have seen List interface and its implementation, while discussing about List interface we must also look into ListIterator …

Sorting User Defined Objects in ArrayList

In our earlier posts we have seen post on how to sort Interger arraylist and how to sort String arraylist. Now we will see how to sort user defined …

Sorting Strings in ArrayList - Ascending and Descending order

Sorting of Lowercase Strings in ascending and descending order<p>Output will be like this<p>Sorting of Uppercase Strings in ascending and descending …

Comparing User Defined class with equals and ==

First lets compare without overridingg equals method<p>Output will be<br>Equals<br>—–<br>false<br>false<br>false<br>true<br>false<br>==<br>—<br>false<br>false<br>false<br>true<br>false<p>Output will …

Flipboard