how to use .split in java to split by more than one character code example
Example: split with multiple condition in java
String text = "s: saturday, sunday, solar, selfie";
String[] words = text.split("[:,] ");
String text = "s: saturday, sunday, solar, selfie";
String[] words = text.split("[:,] ");