How can we convert an array of Object to List in Java? -
this question has answer here:
- converting array list in java 16 answers
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
Post a Comment