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
}
}