Java programmers love their lists just as much as conscientious homemakers love their shopping lists and to-do lists. If you haven't fallen in love with them yet, it's time to start. And a programmer's love begins with code. So, in this task, we'll create a list of strings, add 5 different strings, and then display the size of the list on the screen. Then we'll display the contents of the list. Easy peasy!
What sort of list is that?
You must be signed in to leave a comment
17 August 2021, 12:33
didn't understand the syntax in the for loop...anyone?
25 August 2021, 08:02
Because They Didn't Taught Us That. It is called "For-each loop". Before Beginning any new level I Study The Topic From Else Where Little Deeper If You Want To Learn That. Here's The Link For-each Loop.
16 June 2020, 08:01
In task: "What sort of list is that?" we are unable to use FOR EACH loop since it won't mark "display contents of the list" requirement even when output is correct. Please fix it, thank you
28 October 2019, 04:05
Heads Up. Needs to display first to last input. Not reverse.