ESOP Direct Interview Question

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