Entity enemy = (Entity) this.target_array.get(k);
Entity enemy = (Entity) this.target_array.elementAt(k);
    public double getDamageUtility(CEntity to) {        if (damages == null)            damages = this.getDamageUtilities();        for (int k = 0; k < this.target_array.size(); k++) {            Entity enemy = (Entity) this.target_array.get(k);            if (enemy.getId() == to.entity.getId()) {                return damages[k];            }        }        return 0;    }