List<String> myList = new ArrayList<String>(Arrays.asList(s.split(","))); ... This post has been rewritten as an article here. ... +1: The new ... ... <看更多>
Have you considered that ArrayList could be a little overkill? ... I haven't touched Java in a while, but what you want will look roughly ... ... <看更多>