about | help | code help+videos | done | prefs |
concatWithoutFirstLastLetters
public String concatWithoutFirstLastLetters(String a, String b)
public String concatWithoutFirstLastLetters(String a, String b) { int lenA = a.length(); int lenB = b.length(); String aNo1stLast = a.substring(1,lenA-1); String bNo1stLast = b.substring(1,lenB-1); String combo = aNo1stLast + bNo1stLast; return combo; } concatWithoutFirstLastLetters("012345", "abcde") → "1234bcd" concatWithoutFirstLastLetters("Downtown", "Magnets") → "owntowagnet" concatWithoutFirstLastLetters("United", "States") → "nitetate" ...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: 13
Copyright Nick Parlante 2017 - privacy