Pass Variable In Input Function In Java