Write a method called firstLast that can accept either type of integer list as a parameter and
Question:
Write a method called firstLast that can accept either type of integer list as a parameter and that moves the first element of the list to the end. For example, if a variable called list contains the values [12, 45, 78, 20, 36], the call of firstLast(list); will change the list to store [45, 78, 20, 36, 12].
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Building Java Programs A Back To Basics Approach
ISBN: 9780135471944
5th Edition
Authors: Stuart Reges, Marty Stepp
Question Posted: