convert separated string to list code example Example: convert separated string to list List items = Arrays.asList(str.split("\\s*,\\s*"));