Miran Cvenkel wrote:is that 13,33 is all together one element. That is why I was confused.
See how good it is when you have to explain a problem in full to someone else?
FYI, To ensure that your elements don't have any extra whitespace in them, you need to trim your input string first and then use something like
split("\\s*,\\s*") ('split on a comma surrounded by any amount of whitespace'). Viz:HIH
subject: HashSet.addAll Arrays.asList split extra space