Java array - swap the first and last element of an array with a swap method

preview_player
Показать описание
Write array methods that carry out the following tasks for an array of integers by completing the ArrayMethods class below. For each method, provide a test program. You can continue this project with the array you created in E7.1. Or create another array with 10 random numbers.
int[] data = {4, 47, 39, 54 ,34, 51, 88, 61, 58 ,94, 4 ,94};
Create the swapFirstLast Method from the directions provided below.
Рекомендации по теме
welcome to shbcf.ru