#Java ExecutionException Error

4 messages · Page 1 of 1 (latest)

feral marlin
#

I don't really understand this error nor do I know what I'm doing wrong.

import java.util.Random;

public class RandomTester {
    private final Random random;

    public RandomTester() {
        random = new Random();
    }

    /**
     * Print a single random integer using System.out.println.
     */
    public void printOneRandom() {
        System.out.println(random.nextInt(100));
    }

    public static void main(String[] args) {
        RandomTester randomTester = new RandomTester();
        randomTester.printOneRandom();
    }
}
#

here's more info on the errors:

stuck granite
#

working for me

patent kiln