Java - Swap the top two elements of a stack

Java - Swap the top two elements of a stack

More to explore

Based on this image's title: “Java - Swap the top two elements of a stack