Add problems 1-5 in Java.