change ex2.java add r1&r2 #1