Posts related to tag: Java


Get all available Currency code and name in Java

In Java, getAvailableCurrencies() is a static method of Currency class that returns all available currencies. Currency class is inside the […] Continue reading »

Different ways to iterate/loop a List of Integers in Java

In Java, you can iterate or loop a List object in different ways. In this short example, you will find […] Continue reading »

Java- Find the element in the List having maximum value

In Java 8, Stream API’s max method returns the maximum element of this stream according to the provided Comparator and […] Continue reading »

Java- Find all Capital Letters in the String

In this short tutorial, we’ll find all the capital letters in the given String using Java. Character.isUpperCase(char ch) returns true […] Continue reading »

How to generate QR Code in Java

QRGen library provides an API to generate the QR Code in a Java application. It is built on the top […] Continue reading »

How to create Token in Java

In this article, we will show you a few ways to create/generate a unique token in Java. Creating a unique […] Continue reading »

Java 8 – Generating One Time Password (OTP)

In this short article, we’ll look at how to generate One Time Password (OTP) in Java 8. In Java 8, […] Continue reading »

Java- Find all possible Palindrome in given String

In this short article, we’ll show you how to find all possible Palindrome in given String using Java. Let us […] Continue reading »

Java Program for Tower of Hanoi Problem

In this article, we are going to solve the Tower of Hanoi problem using Java program. There are two approaches […] Continue reading »

Java- Find the index of the two numbers in the array whose sum is equal to a given number

Sometimes interviewer wants to check the candidate’s logical ability and the approach taken to solve the challenge/problem using Java. Question:  […] Continue reading »

How to iterate Enum in Java

This guide walks you through how to iterate Enum in Java/Java 8. .values() method of an enum class return an […] Continue reading »

1 4 5 6 7 8 9