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 an array?
Think of how items are stored in a list.
What is a String in Java?
Consider how you write text messages.
What type of data does an Array store?
Look at how we defined an array earlier.
True or False: Strings in Java can be changed after they are created.
Recall what we learned about String properties.
Write a program that initializes an array of 5 numbers, sorts it, and prints the numbers in ascending order.
Use the Arrays.sort() method for sorting.
Create a method that takes a String as input and returns the substring of the first five characters.
Look up the substring() method for Strings.
5 more questions in this section. Enroll free to practise them all.
Enroll free