
Comparing Strings in Java
1. Overview In this article, we’ll talk about the different ways of comparing Strings in Java. As String is one of the most used data types in Java, this […]
1. Overview In this article, we’ll talk about the different ways of comparing Strings in Java. As String is one of the most used data types in Java, this […]
1. Overview Strings in Java are internally represented by a char[] containing the characters of the String. And, every char is made up of 2 bytes because Java internally uses UTF-16. For […]
1. Introduction Splitting Strings is a very frequent operation; this quick tutorial is focused on some of the API we can use to do this simply in […]
1. Introduction In this article, we’re going to see how we can check whether a given String is a palindrome using Java. A palindrome is a word, […]
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 […]