Here's an example solution for solving the "swap a pair of elements in an array" problem. We'll do it in the Java Shell (jshell). We can look at the array elements directly from the shell.
In other videos we show how to solve this same problem in IntelliJ, but with print statements or with Unit Testing (JUnit).
More on Arrays in Ch. 15 of the "Beginning Java 8 Fundamentals" book: https://tinyurl.com/y4m83bg4 or https://bit.ly/3iNZmDN
On this page of the site you can watch the video online Practical Java: Swapping Elements in an Array (in jShell) with a duration of hours minute second in good quality, which was uploaded by the user James Smith 24 January 2021, share the link with friends and acquaintances, this video has already been watched 483 times on youtube and it was liked by 0 viewers. Enjoy your viewing!