Search the courses, subjects, tracks, games and features, or jump straight to a page.
2 cards from this section. Quick, good the night before a test.
What is the syntax to declare an array of integers in Java?
Remember the data type comes first.
How do you access the first element of an array?
Think about how indexing starts.
What does an array hold?
Focus on the definition of arrays.
Are strings mutable in Java?
Think about string modification.
Write a program that reads 5 integers into an array and finds the average.
Consider how you will read input and calculate the sum.
Create a two-dimensional array for a 3x3 matrix and write a function to transpose it.
You will need to swap the row and column indices.
4 more questions in this section. Enroll free to practise them all.
Enroll free