public static WSAction.Action determineMajority(ArrayList neighbors) { int yea = 0, ney = 0; for(int i = 0; i < neighbors.size(); i++) { Neighbor neighbor = neighbors.get(i); Instance instance = neighbor.getInstance(); if(instance.isRedeemed()) { yea++; } else { ney++; } } if(yea > ney) { return WSAction.Action.Redeem; } else {