about | help | code help+videos | done | prefs |
sumStringLengths
public int sumStringLengths(String var1, String var2)
int len1 = var1.length(); int len2 = var2.length(); int sum = len1 + len2; return sum; sumStringLengths("0", "1") → 2 sumStringLengths("0", "01") → 3 sumStringLengths("", "0123") → 4 ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 2
Copyright Nick Parlante 2017 - privacy