java map to list or array

58

java map to list or array -

List<Value> list = new ArrayList<Value>(map.values());
//or if u want list of keys
List<Value> list = new ArrayList<Value>(map.keys());

java map to list or array -

List<Value> list = new ArrayList<Value>(map.values());
//or if u want list of keys
List<Value> list = new ArrayList<Value>(map.keySet());

Comments

Submit
0 Comments