79767934

Date: 2025-09-18 02:14:39
Score: 1
Natty:
Report link

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
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: teja