for(Object[] objects : list){
        map.put(objects[0].toString(), null);
    }
    for(Map.Entry> entry:map.entrySet()){
        entry.setValue(new ArrayList());
    }
    for(Object[] objects : list){
        String value = objects[1].toString();
        if(value != null ){
            map.get(objects[0].toString()).add(objects[1].toString());
        }
    }