split multiple java strings and put into 1 array 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);
}
}
}