rewrite SSample5_1.java