Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Arrays methods in java

String[] stringArray = { "a", "b", "c", "d", "e" };
ArrayList<String> arrayList = new ArrayList<String>(Arrays.asList(stringArray));
String[] stringArr = new String[arrayList.size()];
arrayList.toArray(stringArr);
for (String s : stringArr)
	System.out.println(s);
Source by www.programcreek.com #
 
PREVIOUS NEXT
Tagged: #Arrays #methods #java
ADD COMMENT
Topic
Name
5+5 =