id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

srp4379@lausd.net ap1 > recombines
prev  |  next  |  chance

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)

public String recombines(String word1, String word2) { }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 200

Copyright Nick Parlante 2017 - privacy