Skip to content

Commit

Permalink
Switch to long instead of int.
Browse files Browse the repository at this point in the history
  • Loading branch information
LakshmanNair committed Sep 18, 2023
1 parent eb319e9 commit d2547c1
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/DataTypes.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import java.util.List;

public class DataTypes {
// TODO TASK 1: fix this code so that it passes the test in DataTypesTest.java

public static long sum(List<Integer> numbers) {

int s = 0;
long s = 0;
// below is a "foreach" loop which iterates through numbers
for (int x : numbers) {
s += x;
Expand Down

0 comments on commit d2547c1

Please sign in to comment.