Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

Android java toArray to String array

List<String> stockList = new ArrayList<String>();
stockList.add("stock1");
stockList.add("stock2");

String[] stockArr = new String[stockList.size()];
stockArr = stockList.toArray(stockArr);

for(String s : stockArr)
    System.out.println(s);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Android #java #toArray #String #array
ADD COMMENT
Topic
Name
3+9 =