| Title | Modifying an Array (Case 2) |
| Catalog Type | SLCItem |
| Persistent ID | https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=JAVA&set=arrays.j_array_change&ch=JArraySwapAdjacentElements |
| Platform Name | PCEX |
| Features | — |
| Description | Construct a program that swaps pairs of adjacent elements of the array. For example, if the array is {1, 2, 3, 4, 5, 6}, the program will change it to {2, 1, 4, 3, 6, 5}.\nThis program assumes that the array has always an even number of elements. |
| Keywords | arrays |
| Author | Roya Hosseini |
| Institution | University of Pittsburgh |
| Iframe URL | https://pawscomp2.sis.pitt.edu/pcex/pcex_v2/index.html?lang=JAVA&set=arrays.j_array_change&ch=JArraySwapAdjacentElements |
| Protocol | PITT, HTML |
| Protocol URL | |
| License | MIT |
| Programming Language | Java |
| Natural Language | en |