I am trying to create an array of DBObject, all of the elements have the same key with different values. what is the problem with this implementation ?
DBObject[] Out = new BasicDBObject[2];
out[0].put("VALUE","1");
out[0].put("PROPERTY","1");
out[1].put("VALUE","2");
out[1].put("PROPERTY","2");