This does not work this way in java. All you do in your changechObj7 method is to reassign a value to your parameter variable.
You can still achieve what you want in java, but you have to approach...