Posts from Java

Checking for Duplicacy in an array using Hashing Technique in Java

By divyesh srivastava

In this Java tutorial, we are going to check whether an array contains duplicate elements or not using hashing technique. What is Hashing Technique and why we prefer Hashing here? .... Read More

Separate even and odd numbers in an array in Java

By divyesh srivastava

Separate even numbers and odd numbers in an array in Java Given an array[], write a function that segregates even and odd numbers. The functions we are going to create should put a.... Read More

Runtime Polymorphism or Dynamic Method Dispatch in Java

By Sneha Mitra

In this Java tutorial, we will learn about Dynamic Method Dispatch or Runtime Polymorphism with proper explanation and example. Polymorphism in Java is described as performing a si.... Read More

Binomial Co-Efficient using Dynamic Programming in Java

By divyesh srivastava

In this Java tutorial, we are going to find the Binomial Co-efficient in Java with an easy Java program. What is Binomial Co-efficient ? A binomial co-efficient C(n,k) can be defi.... Read More

Find all prime numbers less than or equal to N in Java

By vikrant_tomar

In this Java tutorial, we will write a program to find all prime numbers less than or equal to N. We will use the concept of Sieve of Eratosthenes. Sieve of Eratosthenes It is an a.... Read More

String Transformation in Java using Dynamic Programming

By divyesh srivastava

In this Java tutorial, we are going to convert string1 to string2 using the minimum number of operations or string transformation in Java. So, we can either insert a character in .... Read More

Reading and writing a file in Java using FileInputStream and FileOutputStream

By vikrant_tomar

In this Java tutorial, we will learn about file handling in Java. Basically, we will learn reading and writing a file in Java using FileInputStream and FileOutputStream. The java..... Read More

Program to find all distinct solutions to N-Queens problem in Java

By vikrant_tomar

In this Java tutorial, we will find all solutions to N-Queens problem in java. We will use backtracking to find all unique solutions to the problem. Problem Statement An N*N chessb.... Read More

Related Posts