how to parse a string from space code example Example: space seperator in string in java String[] splitted = "peter,james,thomas".split(",");