| Title | Rotating the List Values to the Right by Two Position |
| Catalog Type | SLCItem |
| Persistent ID | https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/arrays_j_array_rotate__68bdb309f6cc3d7a9cc097f6?index=3 |
| Platform Name | PCEX |
| Features | — |
| Description | Construct a program that has a function that receives a list of values and returns the list rotated to the right by 2 position so that the value that is currently at the end of the list is moved to the second position, the second last value of the list is moved to the front of the list, and the remaining values are shifted to the right. For example, if the list is {1, 2, 3, 4, 5, 6}, the program will change it to {5, 6, 1, 2, 3, 4}. |
| Keywords | — |
| Author | Mohammad Hassany |
| Institution | University of Pittsburgh |
| Iframe URL | https://acos.cs.vt.edu/html/acos-pcex/acos-pcex-examples/arrays_j_array_rotate__68bdb309f6cc3d7a9cc097f6?index=3 |
| Protocol | SPLICE |
| Protocol URL | |
| License | MIT |
| Programming Language | JAVA |
| Natural Language | en |