split() — Divides the string into an array of substrings based on a specified delimiter.
String[] split(String regex)
String sentence = "Java is powerful"; String[] words = sentence.split(" "); // Outputs: ["Java", "is", "powerful"]
Clickable & Draggable!