I'm really not sure what's wrong with the code.
package com.codegym.task.task06.task0606;
import java.io.*;
/*
Even and odd digits
*/
public class Solution {
public static int even;
public static int odd;
public static void main(String[] args) throws IOException {
//write your code here
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
double a = Double.parseDouble(reader.readLine());
while(a != 0){
double x = a%10;
if(x%2 == 0){
even++;
}
else{
odd++;
}
a = a/10;
}
System.out.println("Even: " + even + " Odd: " + odd);
}
}