A Java implementation of Thompson Sampling for solving the multi-armed bandit problem.