Online Java Compiler By
JavaTpoint.com
import java.util.LinkedList; import java.util.List; public class JavaListToArrayExample1 { static int j=1; public static void main(String[] args) { List
list = new LinkedList<>(); for (char i='a';i<='z';i++) { list.add(i); } System.out.print("Alphabet : "); Object[] a=list.toArray(); System.out.println(); for(int i=0 ;i
Output