diff options
author | msglm <msglm@techchud.xyz> | 2023-01-14 05:31:48 -0600 |
---|---|---|
committer | msglm <msglm@techchud.xyz> | 2023-01-14 05:31:48 -0600 |
commit | 9d53d8857eaa1c9405894a88ca75bc4657e42f35 (patch) | |
tree | eb1efc1d028b949dd83bb710c68be8eff58f26e7 /Java/CapitalC.java | |
download | school-code-9d53d8857eaa1c9405894a88ca75bc4657e42f35.tar.gz school-code-9d53d8857eaa1c9405894a88ca75bc4657e42f35.tar.bz2 school-code-9d53d8857eaa1c9405894a88ca75bc4657e42f35.zip |
Diffstat (limited to 'Java/CapitalC.java')
-rw-r--r-- | Java/CapitalC.java | 21 |
1 files changed, 21 insertions, 0 deletions
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<String> 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 |