Swap Exercise
firstCup
secondCup
System.out.println(“the game begins...");
System.out.println(“The
value of firstCup is “ + firstCup);
System.out.println(“The value of
secondCup is “ + secondCup);
System.out.println(“Swap
now");
System.out.println(“The value of firstCup is now “ + firstCup);
System.out.println(“The value of secondCup is now“ + secondCup);
Now, Run your program and see the values switch.Run your program again and see it print out 7 for
the first
and 8 for the second.