This is part of my code. I'm getting "illegalformatconversion" at the printf statement. How can I change the code so that the third thing it print is the votes / total votes? Thanks
public static void printResults(List<Candidate> c ) { int total = getTotal(c); System.out.println("Candidate Votes Received % of Total Votes"); for(int x = 0 ; x < c.size(); x++) { System.out.printf("%-26s %-5d %5.2f \n",c.get(x).getName(),c.get(x).getVotes(),(c.get(x).getVotes() / total )); }