I'm a beginner in Java, learning through a class, however when trying to do a while statement where someone can enter numbers between 0 and 100, until they type 999, when it then gives the number of numbers entered, the highest number, lowest number, and the average of all numbers. 

The code I currently have leads to where the 999 doesn't register the first time, the highest and lowest numbers are both multi-digit numbers, the number of numbers includes any numbers outside of the limits and the 999, as does the average.

Here's what I have:

```
import java.util.Scanner;

public class TestScoreStatistics {

    public static void main(String[] args) {
        int numberOfScores = 0;
        int highest;
        int lowest;
        double average;
        Integer score = 0;
        int sumOfScores = 0;
        Scanner input = new Scanner(System.in);

        System.out.println("Please enter a grade or enter 999 to finish >> ");
        score = input.nextInt();
        sumOfScores = sumOfScores + score;

        while (score < 100 || score > 0) {
            ++numberOfScores;
            System.out.println("Please enter a grade or enter 999 to finish >> ");
            score = input.nextInt();
            sumOfScores = sumOfScores + score;
            ++numberOfScores;

            while (score > 100 || score < 0) {
                System.out.println("You entered an invalid score. Please enter a valid test score.");
                System.out.println("Please enter a grade or enter 999 to finish >> ");
                score = input.nextInt();
                sumOfScores = sumOfScores + score;

                if (score == 999) {
                    highest = score.MIN_VALUE;
                    lowest = score.MAX_VALUE;
                    average = sumOfScores / numberOfScores;
                    System.out.println("Number of Scores you entered: " + numberOfScores);
                    System.out.println("Highest Score: " + highest);
                    System.out.println("Lowest Score: " + lowest);
                    System.out.println("Average Score: " + average);
                }
            }
        }
    }
}

```

Thanks.