Lazy pasha string rotation

Posted by Pinki | Updated on | in Java Programming.


Lazy pasha string rotation: The lexicographically minimal string rotation or lexicographically least circular substring is the problem of finding the rotation of a string possessing the lowest lexicographical order of all such rotations. Problem Statement: …

How to delete folder and sub folders using Java

Posted by Editorial Staff | Updated on | in Java Programming.


How to delete folder and sub folders using Java: Deleting an empty directory is easy in Java, just use delete() method of java.io.File class, but deleting a directory with files is unfortunately not easy. How …

Java program to calculate power of a number

Posted by Editorial Staff | Updated on | in Java Programming.


We are going to share a java program to calculate power of a number. If you are a Java beginner and want to start learning the Java programming, then keep your close attention in this …

How to remove duplicate characters from String in Java?

Posted by Editorial Staff | Updated on | in Java Programming.


In this tutorial, we are sharing how to remove duplicate characters from String in Java. For example, if given String is “aaaaaa” then output should be “a”, because rest of  the “a” are duplicates. Similarly, …

Fibonacci Series in Java Without Recursion

Posted by Editorial Staff | Updated on | in Java Programming.


What is Fibonacci Series ? In mathematics, the Fibonacci numbers, commonly denoted Fₙ form a sequence, called the Fibonacci sequence, such that each number is the sum of the two preceding ones, starting from 0 …

Iterate value through Java HashMap

Posted by Editorial Staff | Updated on | in Java Programming.


Iterate through the values of Java HashMap example. This Java Example shows how to iterate through the values contained in the HashMap object. In this tutorial, we are sharing an example of Iterate value through …

Java program to remove punctuation from a given string

Posted by Editorial Staff | Updated on | in Java Programming.


In this program, we are going to share a Java program to remove punctuation from a given string. If you are a Java beginner and want to start learning the Java programming, then keep your …

Java Program to Implement Fisher-Yates Algorithm for Array Shuffling

Posted by Editorial Staff | Updated on | in Java Programming.


We are going to share a Java program to implement fisher-yates algorithm for array shuffling. If you are a Java beginner and want to start learning the Java programming, then keep your close attention in …

Java Program to Implement Gauss Seidel Method

Posted by Editorial Staff | Updated on | in Java Programming.


We are going to share a Java program to implement Gauss Seidel method. If you are a Java beginner and want to start learning the Java programming, then keep your close attention in this tutorial …

Java Program to Implement Gauss Jordan Elimination

Posted by Editorial Staff | Updated on | in Java Programming.


We are going to share a java program to implement Gauss Jordan elimination. If you are a Java beginner and want to start learning the Java programming, then keep your close attention in this tutorial …

A Simple Merge based O(n) solution to find median of two sorted arrays

Posted by Editorial Staff | Updated on | in Java Programming.


In this program, we are going to share a simple merge based O(n) solution to find median of two sorted arrays. If you are a Java beginner and want to start learning the Java programming, …

Java program to count islands in boolean 2D matrix

Posted by Editorial Staff | Updated on | in Java Programming.


In this program, we are going to share a Java program to count islands in boolean 2D matrix. If you are a Java beginner and want to start learning the Java programming, then keep your …

Java program to sort an array of 0, 1 and 2

Posted by Editorial Staff | Updated on | in Java Programming.


In this program, we are going to share a Java program to sort an array of 0, 1 and 2. If you are a Java beginner and want to start learning the Java programming, then …

Java program to find length of the longest bitonic subarray

Posted by Editorial Staff | Updated on | in Java Programming.


In this program, we are going to share a Java program to find length of the longest bitonic subarray. If you are a Java beginner and want to start learning the Java programming, then keep …

How to Create Directories Using Files Class in Java

Posted by Editorial Staff | Updated on | in Java Programming.


In this program, we are going to share a how to create directories using files class in Java. If you are a Java beginner and want to start learning the Java programming, then keep your …