There is one string missing in start code: "import java.util.ArrayList;". Without it it's unable to pass the task. The start conditions shoul be as shown below:

package com.javarush.test.level07.lesson06.task01;

/* 5 different strings in a list
1. Create a list of strings.
    2. Add 5 different strings to the list.
    3. Display to the screen its size.
    4. Display to the screen contents of the list. Each value should be on a new line. Use a loop.
*/
import java.util.ArrayList;
public class Solution
{
    public static void main(String[] args) throws Exception
    {
        //add your code here

    }
}

asked 26 Sep, 10:33

GreenMile's gravatar image

GreenMile
112
accept rate: 0%

edited 26 Sep, 11:51

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×42
×31
×9

Asked: 26 Sep, 10:33

Seen: 90 times

Last updated: 26 Sep, 11:51