All algorithms practice programs in Java