about | help | code help+videos | done | prefs |
WordScrambler, Part I: public String recombine(String word1, String word2). Returns a string using parts of both words, as follows: (1) Takes the 1st half of word1. (2) Takes the 2nd half of word2. (3) Concatenates the 2 halves and returns the new word. NOTE: if a word has an ODD number of letters, the 2nd half contains the extra letter. recombines("apple", "pear") → "apar" recombines("pear", "apple") → "peple" recombines("this", "cat") → "that" ...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: 200
Copyright Nick Parlante 2017 - privacy