From ff3c7d9cc306269b8b44f1dd5ca4c0bf7e0217b5 Mon Sep 17 00:00:00 2001 From: javifriki <3167940565@qq.com> Date: Tue, 16 Sep 2025 11:46:06 -0400 Subject: [PATCH] fixed DataTypes.java --- src/DataTypes.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/DataTypes.java b/src/DataTypes.java index 12c0618e..1c1adc7f 100644 --- a/src/DataTypes.java +++ b/src/DataTypes.java @@ -1,7 +1,6 @@ public class DataTypes { - // TODO TASK 1: fix this code so that it passes the test in DataTypesTest.java public static long sum(int[] numbers) { - int s = 0; // variable to accumulate the sum in! + long s = 0; // variable to accumulate the sum in! // below is a "foreach" loop which iterates through numbers for (int x : numbers) { s += x;