Posts from Java

Iterative method to check if two trees are mirror of each other in Java

By Aditya Goyal

In this tutorial, we are going to learn an iterative approach to check if trees are mirror images. So, we will be comparing two trees’ returns true if both the trees are mirr.... Read More

Check for Symmetric Binary Tree (Iterative Approach) in Java

By Aditya Goyal

In this tutorial, will see how we can check for a Symmetric Binary Tree in Java. A Symmetric Binary Tree is a tree in which a tree is a mirror of itself. We will be doing this code.... Read More

How to iterate Map in Java

By Aditya Goyal

In this tutorial, we are going to learn how to iterate a map in Java. As we know, we cannot iterate a map directly using iterators as a map is not a Collection. Firstly we have to .... Read More

Finding the third largest string in a given array in Java

By Sai Praneeth

In this tutorial,we get to find third largest string in a given array. Consider a string array from which third highest string must be displayed and if there are multiple strings w.... Read More

How to convert an iterable to collection in Java

By Aditya Goyal

In this tutorial, we are going to learn how to convert an iterable to a collection in Java. An iterator is used to retrieve elements one by one whereas a collection is a group of o.... Read More

Check if a given Binary Tree is SumTree in Java

By Aditya Goyal

In this tutorial, we are going to learn to check if a Binary Tree is a Sum Tree or not in Java. It is a Tree in which the root node is equal to the sum of it’s left and right.... Read More

Difference between static and non static variables in Java

By Richa Sirwani

Hello coders, in this tutorial we will learn the basic types of variables in Java and differentiate between static and non-static variables in Java. A variable is used to store inf.... Read More

Mathematical Functions in Java

By Mallika Gupta

In this tutorial, we will learn all the major mathematical functions in Java with examples. Performing Mathematical Functions in Java Java contains packages for doing mathematical .... Read More