Java

Do-while loop in java

Let’s learn do-while loop in java. Do-while loop in java Do while loop java executes the statements and then evaluates the expression/condition of loop’s body…

Read More

String constructors in java

Let’s learn string constructors in java. String class constructors in java A string is an object of class class String. String constructors are used for…

Read More

Difference between “==” operator and equals method in java

Let’s learn difference between “==” operator (string equals java) and equals method (.equals java) in java. Difference between “==” operator and equals method in java…

Read More

Multidimensional array in java

Let’s learn multidimensional array in java. Multidimensional array in java Java multidimensional array is an array of arrays with multiple rows and columns. Data in…

Read More

Arrays in java

Let’s learn arrays in java. Arrays in java Java arrays is a fixed collection of similar (homogeneous) data-type elements that have contiguous memory location. For…

Read More

Sorting HashMap by values in java

Let’s learn sorting hashmap by values in java. Sorting hashmap by values in java In hashmap sort by value first we have to store entry…

Read More

ArrayList in java

Let’s learn arraylist in java. ArrayList in java underlying data structure for arraylist is resizable array. ArrayList allows duplicate elements. ArrayList preserves insertion order. Heterogeneous…

Read More

HashSet in java

Let’s learn hashset in java. HashSet java underlying data structure for hashset is Hash table. HashSet implements Set interface. Hashset do not allow duplicate elements….

Read More

Treeset in java

Let’s learn treeset in java. Treeset in java TreeSet class underlying data structure is Balanced Tree. TreeSet java implements NavigableSet interface by inheriting AbsractSet class….

Read More

Arrays copyOfRange() in java

Let’s learn Arrays copyOfRange() in java. Arrays copyOfRange() in java copyofrange method copies specified range of the original array into a new array. The initial…

Read More