Java Program For Reverse String Using Javascript Variables