SP Software interview question

How do you reverse a string in Java? How do you swap two numbers without using a third variable in Java?