Did I make a typo or something or is my code have an issue that I'm oblivious to?
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 br = new BufferedReader(new InputStreamReader(System.in));
int enteredNum = Integer.parseInt(br.readLine());
while ((enteredNum > 1) || (-1 >= enteredNum)) {
if(enteredNum % 2 == 0) {
even++;
} else {
odd++;
}
enteredNum /= 10;
}
br.close();
System.out.println("Even: " + even + " Odd: " + odd);
}
}