Help with error?
package com.codegym.task.task06.task0606;
import java.io.*;
/*
Even and odd digits
*/
public class Solution {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int a= Integer.parseInt(reader.readLine());
int odd, even = 0;
while (a >0) {
if (a%2) == 0 {
even ++;
} else {
odd++;
}
a/=10
}
System.out.println("Even: "+even+" Odd:"+odd);
}
//create even and odd counters - done
//find index of each digit
// evaluate modulo
// increment correct counter
//println - done