Reverse Array Using Temp Variable In Java