Posts from Java

Find the Largest triplet product in a stream in Java

By Mohit Goswami

In this tutorial, we are going to find the Largest triplet product in Java. This is a very basic problem and an example of heaps or priority_queue. Priority Queue in Java or (MAX H.... Read More

Object Serialization with Inheritance in Java

By Monika Maheshwari

In this section, we are going to talk about serialization with the help of code. So, Serialization is referred to as a process in which an object is converted into a stream of byte.... Read More

Block swap algorithm for array rotation in Java

By Reetesh Kumar

In this tutorial, we’ll learn the block swap algorithm for array rotation (left) in Java. Consider a given array (a) : 1,  2,  3,  4,  5,  6,  7,  8,  9 After rotatin.... Read More

Validate a PAN Card number in Java using Regular Expression

By Caushik Subramaniam

A Regular Expression is a sequence of characters that define a search pattern, usually used for searching and replacing patterns in strings. Many different programming languages su.... Read More

How to count maximum points on same line in Java

By Monika Maheshwari

In this section, we are going to learn how to count points that lie on the same line. So, for points to be lying on the same line, the slope needs to be the same. The idea of slope.... Read More

Decorator Design Pattern in Java

By Deepak Reddy

In this module, we are going to discuss Decorator Design Pattern and it’s implementation in Java. Decorator Pattern is one of a Structural Design Pattern. Structural Design P.... Read More

How to Merge two binary Max Heaps in Java

By Ekta Sharma

Hey! In this tutorial, we are going to learn how to merge two binary Max Heaps in Java. Before the actual procedure, We will be learning what are Max heaps, what does Binary Max he.... Read More

How to validate identifier using Regular Expression in Java

By Yogesh Agarwal

Hello guys, in this tutorial we will learn how to validate an identifier using a regular expression in Java. A Regular Expression is an expression that represents a set of strings .... Read More

Related Posts