Below code convert Array List to array and store result as type object.How can I convert it into a specific type like array of Strings.
List<String> list = new ArrayList<>();
list.add("Blobbo");
list.add("Cracked");
list.add("Dumbo");
Object[] ol = list.toArray();