VPL: testing arrays in Java with cloning
On a recent final exam I had students create a method that could interleave two halves of an array. The original exercise came from a Schaum’s Outline book. If you’re not careful, by passing values by reference you can have the student’s solution pollute the original input test value. To solve this in Java you […]