java string into string array separate by ; code example Example: split string into array java String[] array = values.split("\\|", -1);