create list of booleans java

180

create list of booleans java -

List<Boolean> list=new ArrayList<Boolean>(Arrays.asList(new Boolean[10]));
Collections.fill(list, Boolean.TRUE);

how to create a boolean list in java -

List<Boolean> list=new ArrayList<Boolean>(Arrays.asList(new Boolean[10]));

Comments

Submit
0 Comments