What sort of list is that?

  • 2
  • Locked
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!
You can't complete this task, because you're not signed in.
Comments (4)
  • Popular
  • New
  • Old
You must be signed in to leave a comment
Anonymous #10772950
Level 8 , Delhi
17 August 2021, 12:33
didn't understand the syntax in the for loop...anyone?
Shashikant Sharma
Level 8 , Surat, India
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.
Rafal Pawlowski
Level 15 , Swaythling, United Kingdom
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
Level 22 , Austin, United States
28 October 2019, 04:05
Heads Up. Needs to display first to last input. Not reverse.