finished initial problem_003 attempt for java.