Models the Infinite Monkey Theorem in Java.