I don't understand what is wrong and what I shuold to do?
public class Solution {
public static void main(String[] args) throws Exception
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String> list = new ArrayList<String>();
list.add("Ala");
list.add("ma");
list.add("kota");
System.out.println(list.get(0));
System.out.println("As");
System.out.println(list.get(1));
System.out.println("As");
System.out.println(list.get(2));
System.out.println("As");
}
}
package pl.codegym.task.task07.task0715;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
/*
Więcej Ala ma kota
*/
public class Solution {
public static void main(String[] args) throws Exception
{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String> list = new ArrayList<String>();
list.add("Ala");
list.add("ma");
list.add("kota");
System.out.println(list.get(0));
System.out.println("As");
System.out.println(list.get(1));
System.out.println("As");
System.out.println(list.get(2));
System.out.println("As");
}
}