From e1531c817a43cef5714af1c90247be251dd45587 Mon Sep 17 00:00:00 2001 From: HENRY Date: Sat, 11 Apr 2026 21:05:25 -0700 Subject: [PATCH 1/3] printItems method was implemented and tested in terminal with successful output. testing commits on my own, hope this works --- src/Practice.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Practice.java b/src/Practice.java index c83a376..7bcbbcb 100644 --- a/src/Practice.java +++ b/src/Practice.java @@ -18,6 +18,9 @@ public class Practice { */ public static void printItems(String[] items) { // TODO: Implement this method here! + for(int i = 0; i < items.length; i++) { + System.out.println(items[i]); + } } /** From 5c7ecf0e7c629ec57311901c0b41ef93344b33f8 Mon Sep 17 00:00:00 2001 From: HENRY Date: Sat, 11 Apr 2026 21:19:58 -0700 Subject: [PATCH 2/3] moreThanDouble method implemented, simple boolean statement --- src/Practice.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Practice.java b/src/Practice.java index 7bcbbcb..7c63922 100644 --- a/src/Practice.java +++ b/src/Practice.java @@ -48,7 +48,7 @@ public static void printItems(String[] items) { */ public static boolean moreThanDouble(int a, int b) { // TODO: Delete the dummy return statement and implement this method here! - return false; + return a > 2 * b; } From 6614dc037fe94d149b9e2845bdfb941138f4d20a Mon Sep 17 00:00:00 2001 From: HENRY Date: Sat, 11 Apr 2026 21:24:43 -0700 Subject: [PATCH 3/3] added the allStartWithA method, trying to figure out how to sync work with terminal as i make changes to this code, work in progress --- src/Practice.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Practice.java b/src/Practice.java index 7c63922..605a6dc 100644 --- a/src/Practice.java +++ b/src/Practice.java @@ -74,6 +74,11 @@ public static boolean moreThanDouble(int a, int b) { */ public static boolean allStartWithA(String[] words) { // TODO: Delete the dummy return statement and implement this method here! + for(int i = 0; i < words.length; i++) { + if(words[i].charAt(0) != 'A' && words[i].charAt(0) != 'a') { + return false; + } + } return false; }