import java.io.PrintStream; public class IntSwap { public static void main(String[] args) { PrintStream out = System.out; int first = Integer.parseInt(args[0]); int second = Integer.parseInt(args[1]); out.print("The first integer was "); out.print(first); out.print(" and the second integer was "); out.println(second); // create a third variable to remember first int tmp = first; first = second; second = tmp; out.print("After swapping the value of first is " + first); out.println(" and the value of second is " + second); } }