how to split a string into an aarray i java code example Example: split string into array java String[] array = values.split("\\|", -1);