1 empty after no comma separated, i.e. after the comma empty To convert a set of three elements 2 . 3 List <String> List = Arrays.asList (s1.split ( ",", - 1 )); . 4 after only with the condition, -1 is added to the results of conversion as follows . 5 . 6 [a, B,]