protected int getVoteWinner()
{
int old = 0;
HashMap<Integer, Integer> temp = new HashMap<>();
for (int vote : votes.values())
{
if (!temp.containsKey(vote))
temp.put(vote, 1);
else
{
old = temp.get(vote);
old++;
temp.getEntry(vote).setValue(old);
}
}
int max = temp.head().getNext().getValue();
int result = temp.head().getNext().getKey();
for (Map.Entry<Integer, Integer> entry : temp.entrySet())
{
if (entry.getValue() > max)
{
max = entry.getValue();
result = entry.getKey();
}
}
votes.clear();
temp = null;
return result;
}
How do I solve this problem? Use aCis 350, replaces FastMap with HashMap and is giving this error.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
https://jsoft.top/
here is an example, cms uses html pages.
Front-end you use your own, if you have a pure static template (html/css/js) I can adapt it.
If you are interested, I can give access to the admin panel to study the functionality
Question
L2shaken
http://imgur.com/a/KJwdY
How do I solve this problem? Use aCis 350, replaces FastMap with HashMap and is giving this error.
Edited by L2shaken17 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.