#StringUtils

StringUtils – Apache common Lang3

Reading Time: 2 minutes In this blog, we will learn about the StringUtils class. It provides some nice utilities that deal with Strings as compare to java.lang.String. Before discussing its methods, let’s see one example. Movie movie = new Movie() String name = movie.getName(); if(name.isEmpty()){ } what if the movie’s name is Null. 🤔 Exception in thread “main” java.lang.NullPointerException Then definitely it will throw a Null Pointer Exception. Yes, Continue Reading