String methods – isEmpty() and lastIndexof
In this post, we will discuss about 2 methods which are isEmpty and lastIndexOf. Let’s understand them with examples. boolean isEmpty(): Returns true , if length of the string is 0. public class StringMethodsEx...