import java.util.Scanner; public class Askisi14{ public static void main(String args[]){ int i; int voteA = 0; int voteB = 0; int voteC = 0; int white = 0; int winnerVotes; char winner; char vote; double percentage; Scanner input = new Scanner(System.in); for (i=0;i<1500;i++){ vote = input.nextChar(); if (vote == 'A') voteA++; else if (vote == 'B') voteB++; else if (vote == 'C') voteC++; else white++; } if (voteA>voteB){ if (voteA>voteC){ winner = 'A'; winnerVotes = voteA; } else{ winner = 'C'; winnerVotes = voteC; } } else{ if (voteB>voteC){ winner = 'B'; winnerVotes = voteB; } else{ winner = 'C'; winnerVotes = voteC; } } percentage = winnerVotes*100/1500; System.out.printf("The winner is %s with a percentage of %.2f",winner,percentage); } }
cannot find symbol
any suggest?