Swapping instance field values of two objects

While working on Codecademy’s Java tutorial’s BUILD A DROID PROJECT I saw
"Create a method energyTransfer() that exchanges batteryLevel between instances."
How can I write the code for swapping values of two different objects?