Writing our own ThreadFactory
In the Solution class, create a public static AmigoThreadFactory class that implements the ThreadFactory interface. 1. The implementation of the interface's method must create and return a thread that: 1.1. is not a daemon, 1.2. has a normal priority level.
The Solution class will be used by threads. Implement all of the methods using the ThreadLocalRandom class. getRandomIntegerBetweenNumbers must return a random int between "from" and "to". getRandomDouble must return a random double.
GO TO FULL VERSION