Rajesh Sinha

[ Intern at Padhle.com ] I am a software developer working especially with python and JAVA. I believe I can learn new skills from everyone and from every work. I have uploaded my work samples in my GitHub repository.

MAP, Entry and HashMap – Free Java Tutorials and Online Training

If we want to represent a group of object as key-value pairs. then we have to use MAP. Key-value pairs means, for every value there will be a unique key. MAP MAP Features Both keys and values are objects only. Duplicate keys are not allowed, but duplicate values are allowed. Each key-value pair is called Entry, …

MAP, Entry and HashMap – Free Java Tutorials and Online Training Read More »

String Objects in TreeSet – Free Java Tutorials and online Training

Let us take some programming examples based on String objects in TreeSet concept : Example1 : Write a JAVA Program to insert String Objects into a TreeSet where all elements should be inserted according to reverse of alphabetical order. import java.util.*; class myComp implements Comparator // Our custom comparator class { public int compare(Object obj1, Object …

String Objects in TreeSet – Free Java Tutorials and online Training Read More »

Set Interface in Java – HashSet , SortedSet Interface , LinkedHashSet

Being a child Interface of Collection Interface, we will use Set when we want to represent a group of individual objects as a single entity, where no duplicate elements are allowed and insertion order is not preserved. Being a child interface of Collection Interface, all methods declared in Collection Interface are by-default available in Set (Interface). …

Set Interface in Java – HashSet , SortedSet Interface , LinkedHashSet Read More »

List Interface in Java – Free Java Tutorials and Online Training

List Interface is a child interface of Collection Interface. We will go for List Interface if we want to represent a group of individual objects as a single entity where duplicates are allowed and the insertion order must be preserved. Say, the above list (may be ArrayList or LinkedList) contains 6 elements, the elements in …

List Interface in Java – Free Java Tutorials and Online Training Read More »