convert List<String> to List<StringType> java code example Example: List of strings to array of strings java String[]result=stringList.toArray(new String[0]);