
Count Occurrences of a Char in a String
1. Overview There are many ways to count the number of occurrences of a char in a String in Java. In this quick tutorial, we’ll focus on […]
1. Overview There are many ways to count the number of occurrences of a char in a String in Java. In this quick tutorial, we’ll focus on […]
1. Overview In this quick article, we are going to check and discuss different techniques for removing the last character of a String. 2. Using String.substring() The […]
1. Introduction In this tutorial, we’re going to learn how to generate a random string in Java, first using the standard Java libraries, then using […]
1. Introduction In this tutorial, we’ll go through some ways of checking for empty or blank strings in Java. We’ve got some native language approaches […]
1. Overview In this article, we’ll learn how to declare multi-line strings in Java.Now that Java 15 is out, we can use the new native […]
1. Introduction Java 15 reached general availability in September 2020 and is the next short-term release for the JDK platform. It builds on several features […]
1. Overview Java 14 released on March 17, 2020, exactly six months after its previous version as per Java’s new release cadence. In this tutorial, we’ll look at […]
1. Overview September 2019 saw the release of JDK 13, per Java’s new release cadence of six months. In this article, we’ll take a look […]
1. Introduction In this tutorial, we’ll have a quick, high-level overview of some of the new features that came with Java 12. A full list […]
1. Overview Oracle released Java 11 in September 2018, only 6 months after its predecessor, version 10. Java 11 is the first long-term support (LTS) […]
1. Introduction JDK 10, which is an implementation of Java SE 10, was released on March 20, 2018. In this article, we’ll cover and explore […]
1. Overview Java 9 comes with a rich feature set. Although there are no new language concepts, new APIs and diagnostic commands will definitely be […]
1. Overview In this article, we’ll have a quick look at some of the most interesting new features in Java 8. We’ll talk about: interface […]
1. Introduction We may wish to use arrays as part of classes or functions that support generics. Due to the way Java handles generics, this can be difficult. […]
1. Overview In this tutorial, we’re going to see how we can use BitSets to represent a vector of bits. First, we’ll start with the rationale behind […]
1. Overview In this tutorial, we’re going to have a look at different ways to compare arrays in Java. We’ll cover conventional methods, and we’ll also […]
1. Overview It’s typically easy to start-up a service. However, sometimes we need to have a plan for gracefully shutting one down. In this tutorial, […]
1. Overview In this tutorial, we’re going to see how to generate random dates and times in bounded and unbounded fashions. We’ll be looking at […]
1. Introduction In this tutorial, we learn about the difference between Date and OffsetDateTime. We also learn how to convert from one to the other. 2. Difference Between Date and OffsetDateTime OffsetDateTime was […]
1. Overview The Scanner class is a handy tool that can parse primitive types and strings using regular expressions and was introduced into the java.util package in Java 5. […]