Print all leaf nodes of a binary tree in Java

Given a binary tree, we need to print all leaf nodes of the given binary tree from left to right. That is, the nodes should be printed in the order they appear from left to right in the given tree.

Remove all white space from String in Java

In this post, you will learn two ways to remove whitespace from Java strings. One is to use built-in methods that are useful when developing applications, and the other is to not use built-in methods.

Sort a linked list in java

In this tutorial, we have to sort a given linked list according to default alphabetical order or customized sorting order.

Quick Sort in Java

In this tutorial, we will use Quick Sort algorithm to sort an array. Quick Sort uses last element as pivot sort an array.