summaryrefslogtreecommitdiffstats
path: root/Java/CapitalC.java
diff options
context:
space:
mode:
Diffstat (limited to 'Java/CapitalC.java')
-rw-r--r--Java/CapitalC.java21
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