Search the courses, subjects, tracks, games and features, or jump straight to a page.
3 cards from this section. Quick, good the night before a test.
What is the purpose of an array in Java?
Think of how an array groups similar items.
If int[] arr = {1, 2, 3}; what will arr[1]` return?
Remember indexing starts at zero.
What is an array in Java?
Consider how data is stored in Java.
True or False: In Java, the first index of an array is 1.
Remember how counting starts.
Write a program that initializes an array of your choice with integer values, then finds the average of those values.
Remember to use the length and a for loop.
Create a method that reverses an array and returns the new reversed array.
Consider using two pointers.
6 more questions in this section. Enroll free to practise them all.
Enroll free