made a mistake @ Felix Riemer import java.util.ArrayList; ArrayList<String> dogNames = new ArrayList<String>(); dogNames.add("dog1")