Posts from Java

Check if a number is Fermat Pseudoprime in Java

By Subham Subhamaya Satpathy

Here you will learn to check if a number is Fermat Pseudoprime in Java programming. This tutorial will include some easy and understandable instructions. In this problem, we will b.... Read More

CamelCase pattern matching in Java

By Aditya Goyal

In this tutorial we are going to learn about CamelCase pattern matching in Java. In this a list of CamelCase words will be there and a pattern will be there. So, we will be printin.... Read More

Implementation of Cocktail Sort in Java

By Arnab Bhattacharya

Cocktail shaker sort is also knwn as double sided bubble sort. Some even say it’s also known as advance bubble sort or  variation of bubble sort. Therefore in this tutorial .... Read More

Number methods in Java

By Deepak Reddy

In this module, we are going to discuss number methods in Java. This number methods belong to number class which is of abstract type and it is defined under java.lang package. Thes.... Read More

Java Varargs | Variable arguments in Java

By Caushik Subramaniam

The Variable-Length Arguments or varargs in Java was introduced in Java 1.5. Either the method was overloaded or the arguments were passed in an array to the method before the vara.... Read More

How to clone a map in Java

By Shivam Purohit

Hello programmers, in this tutorial you will how to clone a Map in Java. Making a clone of a map basically in programming means that both the entries of map 1 and map 2 will be the.... Read More

Character and Byte Streams in Java : Differences

By Niwedita Kumari

In this tutorial, we will be looking up for the wide variations between character stream and byte stream in Java. We know that stream is a sequence of data stored in a file.  Java.... Read More

Java program to swap all odd and even bits

By Caushik Subramaniam

Actually, 0 and 1 can do a lot. In fact, the reason behind today’s technology is, of course, 0 and 1. Any field, say, for instance, Networking, relies upon binary. If one of .... Read More