I study IT,it was Ipv 6 in our textbook
Answer:
Explanation:
The following code is written in Java, the function takes in a list with the previous day's values. The function then uses that list, loops through it and multiplies each individual value by 2 and returns the modified list. The first red square represents the test case for the function, while the second red square in the image represents the output.
public static ArrayList<Integer> doubleIt(ArrayList<Integer> mylist) {
for (int x = 0; x<mylist.size(); x++) {
mylist.set(x, mylist.get(x)*2);
}
return mylist;
}
95% sure its there must be waves
it means equals thanks for the free points
Answer:
Arrays are indexed from 0 in pretty much every language, except stupid Microsoft languages.
Lets say that ARR_SIZE is 5 for example.
So you have an array of 5 elements. They are indexed from 0 - 4.
arr[0] // First element
arr[4] // Last element
Therefore arr[ ARR_SIZE -1 ] is the last element of the array.
That's why for loops to iterate through arrays are wrote like:
for(int i = 0; i < ARR_SIZE; ++i)