import java.util.ArrayList; class CapitalC { public static void main (String str[]) { ArrayList book = new ArrayList<>(); //book titles book.add("test"); book.add("Capital"); book.add("test2"); book.add("Carmex"); book.add("LaTeXC"); book.add("C++"); book.add("East"); for (String b: book){ if(b.charAt(0) == 'C'){ System.out.println(b); } }}} //By msglm; Licensed under the AGPL v3