Basically yes, although you need to edit your methods so you are working on the array you have passed to the method, not creating a new one and working on that as any data you create in a method will...
Type: Posts; User: Hammet27
Basically yes, although you need to edit your methods so you are working on the array you have passed to the method, not creating a new one and working on that as any data you create in a method will...
Meaning your method signature will need adjusting as well to specify the correct data type
When you use the [ ]operators you are asking for one element of the whole array, in your method at the end of the for loop i is equal to list.length (12) which terminates the for loop but then are...