In case the string we are splitting is delimiter itself. Then split results in an empty list.
String emptyString = ""; String[] result = emptyString.split(""); // Delimiter is also an empty string System.out.println(result.length); // Output: 0