The AC Code in Java for Problems on LeetCode.