adding Reverse and Add program in java