package no.hvl.dat104;

import java.util.HashMap;
import java.util.Map;

public class Votes {

    private Map<Integer, Integer> votes;

    public Votes() {
        this.votes = new HashMap<>();
    }

    public void addVote(int valg) {
        votes.put(valg, votes.get(valg) + 1);
        System.out.println(votes.get(valg));
    }

    public Map<Integer, Integer> getVotes() {
        return votes;
    }

    public void setVotes(Map<Integer, Integer> votes) {
        this.votes = votes;
    }
}

@@ -282,53 +282,8 @@
 1);%0A
-        System.out.println(votes.get(valg));%0A
     

Clean up