"You're just sitting idle again? You're a robot! Robots do something all the time. Here are a couple of exercises to keep you from rusting. But first, a few hints:"

"Hint 1:

By 'list', we usually mean an ArrayList."

"Hint 2:

A 'string' means a String object."

"Hint 3:

'Create a list of strings' most often means the following: ArrayList&ltString> list = new ArrayList&ltString>();"

13
Task
New Java Syntax,  level 13lesson 2
Locked
5 different strings in a list
1. Initialize the list field in the main method. 2. Add 5 different strings to the list variable. 3. Display the size of the list on the screen. 4. Use a loop to display its contents, each value on a new line. Note: Add strings to the list only after the list is initialized.
13
Task
New Java Syntax,  level 13lesson 2
Locked
To the top of the list
1. Create a list of strings in the main method. 2. Add 10 strings to it from the keyboard, but only add them to the beginning of the list, not the end. 3. Use a loop to display the contents, each value on a new line.
13
Task
New Java Syntax,  level 13lesson 2
Locked
The largest number
1. Read 5 numbers from the keyboard and add them to the integers list. 2. Find the maximum number in the list. 3. Display the found number on the screen.
13
Task
New Java Syntax,  level 13lesson 2
Locked
Expressing ourselves more concisely
1. Create a list of strings. 2. Read 5 strings from the keyboard and add them to the list. 3. Using a loop, find the shortest string in the list. 4. Display the string. 5. If there is more than one, display each on a new line.
13
Task
New Java Syntax,  level 13lesson 2
Locked
Minimum or maximum
1. Initialize the strings field in the main method. 2. Add 10 strings from the keyboard to the strings list. 3. Determine whether the shortest string or the longest string is encountered first in the list. If several strings are shortest or longest, then consider the very first such string encounter
13
Task
New Java Syntax,  level 13lesson 2
Locked
Remove and insert
1. Create a list of strings. 2. Add 5 strings from the keyboard. 3. Do the following 13 times: remove the last string and insert it at the beginning. 4. Use a loop to display the resulting list, each value on a new line.