From 9d53d8857eaa1c9405894a88ca75bc4657e42f35 Mon Sep 17 00:00:00 2001 From: msglm Date: Sat, 14 Jan 2023 05:31:48 -0600 Subject: Inital Commit --- Java/CapitalC.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Java/CapitalC.java (limited to 'Java/CapitalC.java') diff --git a/Java/CapitalC.java b/Java/CapitalC.java new file mode 100644 index 0000000..de1d6a4 --- /dev/null +++ b/Java/CapitalC.java @@ -0,0 +1,21 @@ +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 -- cgit v1.2.3