Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

convert array to list java

String[] myArray = new String[] { "I", "like", "eating", "pizza" };
List<String> myList = Arrays.asList(myArray);

myList.forEach(string -> System.out.println(string));

// -output-
// I
// like
// eating
// pizza
// -output-
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #convert #array #list #java
ADD COMMENT
Topic
Name
6+3 =