Biology Forums - Study Force

Science-Related Homework Help Computer Studies Topic started by: justinw2200 on May 5, 2020



Title: The reverse method is defined in the textbook. What is list1 after executing the following ...
Post by: justinw2200 on May 5, 2020
The reverse method is defined in the textbook. What is list1 after executing the following statements?

int[] list1 = {1, 2, 3, 4, 5, 6};
list1 = reverse(list1);


▸ list1 is 6 5 4 3 2 1

▸ list1 is 1 2 3 4 5 6

▸ list1 is 0 0 0 0 0 0

▸ list1 is 6 6 6 6 6 6


Title: The reverse method is defined in the textbook. What is list1 after executing the following ...
Post by: Btllllll on May 5, 2020
Content hidden