Explore what CodeHS has to offer for districts, schools, and teachers.
Click on one of our programs below to get started coding in the sandbox!
View All
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); ```