how to split a string with multiple delimiters in java code example
Example: java array split by multiple ways
public class split_demo {
public static void main (String[] args)
{
String str_split="split method.It is cool - (Hello-World)";
for (String str_complex : str_split.split("\\s|,|\\.|-")) {
System.out.println(str_complex);
}
}
}