Create ch2_4.java