ESOP Direct interview question

Write a Java programm to swap the numbers form an Array.