Skip to content

Commit

Permalink
Update at 2022-10-17T18:34:57.824865Z
Browse files Browse the repository at this point in the history
  • Loading branch information
williamgl authored and ByteLegendBot committed Oct 17, 2022
1 parent d4d0f58 commit bcc0175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/com/bytelegend/Challenge.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ public static void main(String[] args) {
System.out.println("A+B+C=" + add("A", "B", "C"));
}

private static int add(int ...a) {
public static int add(int ...a) {
int res = 0;
for (int i: a) res += i;
return res;
}

private static String add(String ...a) {
public static String add(String ...a) {
String res = "";
for (String i: a) res += i;
return res;
Expand Down

0 comments on commit bcc0175

Please sign in to comment.