()
| 6683 | } |
| 6684 | |
| 6685 | Variable[] reverseArray() { |
| 6686 | interp.getLeftParen(); |
| 6687 | Variable[] a = getArray(); |
| 6688 | interp.getRightParen(); |
| 6689 | int n = a.length; |
| 6690 | for (int i=0; i<n/2; i++) { |
| 6691 | Variable temp = a[i]; |
| 6692 | a[i] = a[n-i-1]; |
| 6693 | a[n-i-1] = temp; |
| 6694 | } |
| 6695 | return a; |
| 6696 | } |
| 6697 | |
| 6698 | Variable[] rotateArray() { |
| 6699 | interp.getLeftParen(); |
no test coverage detected