Using the isEmpty() Method The isEmpty() method returns true or false depending on whether or not our string contains any text. It’s easily chainable with a string == null check , and can even differentiate between blank and empty strings: String string = “Hello there”; if (string == null || string.24 Kas 2021