Please enable JavaScript to use CodeHS

CodeHS Glossary


Indexing into an array Java

Getting a value at a particular index in an array. For example: ``` int[] scores = {80, 92, 91, 68, 88}; // Get the value at index 2, by indexing into the array int value = scores[2]; // Prints out 91 System.out.println(value); ```