How can we convert an array of Object to List in Java? -


this question has answer here:

ex: object[] arrobject1 = new object[]{true, true, false, true, false}

object[] arrobject2 = new object[]{1, 2, 3, 4, 5}  

how can convert object[] list?

use list<object> list = arrays.aslist(array);


Comments

Popular posts from this blog

android - Gradle sync Error:Configuration with name 'default' not found -

java - Andrioid studio start fail: Fatal error initializing 'null' -

html - jQuery UI Sortable - Remove placeholder after item is dropped -