Java Tutorials


Difference between trim() and strip() methods in Java

In this article, you will learn the difference between trim() and strip() methods of the String class in Java. trim() […] Continue reading »

Java – isBlank() vs isEmpty() method of String class

In this short article, you will get to know about the difference between the isBlank() and isEmpty() methods of the […] Continue reading »

Java 11- New Methods of String Class

Java 11 (JDK 11) added a few new utility methods in the String class. These utility methods will reduce the […] Continue reading »

Java 8 Stream filter() Method Example

filter() method introduced in the Stream interface of Java 8 version under the package java.util.stream. filter() method is an Intermediate […] Continue reading »

Java 8 Stream API allMatch(), anyMatch() and noneMatch() method Example

On this page, we will learn about Java 8 Stream API allMatch(), anyMatch() and noneMatch() method with an example. allMatch(), […] Continue reading »

Capitalize the first letter of each word in a String using Java

On this page, we will learn how to capitalize the first letter of each word in a String using Java. […] Continue reading »

Java – Capitalize the first letter of a String

In this short tutorial, you will get an idea of how to capitalize the first letter of a string. In […] Continue reading »

Java 9- Creating Collection using Factory Method of(…)

Java 9 introduced static factory method of(...) to create the unmodifiable collection instance for the List, Set, and Map. It […] Continue reading »

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 »

Java 8- Find the Average of List of Integers

In Java 8, the average() method of the DoubleStream interface calculate the average of the list of integers. 1. Stream […] 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 »

1 2 3 8