Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

how to convert arraylist to array in java

List<String> list=new ArrayList<String>();
list.add("sravan");
list.add("vasu");
list.add("raki");

// Conversion part
String names[]=list.toArray(new String[list.size()])
Source by dzone.com #
 
PREVIOUS NEXT
Tagged: #convert #arraylist #array #java
ADD COMMENT
Topic
Name
8+9 =