Added ex04.java