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

 

pais@kinetigram.com > S17_minCat
prev  |  next  |  chance

APCS String 1, Problem 7. Given two strings, append them together (known as "concatenation") and return the result. However, if the strings are different lengths, omit chars from the longer string so it is the same length as the shorter string. So "Hello" and "Hi" yield "loHi". The strings may be any length.


S17_minCat("Hello", "Hi") → "loHi"
S17_minCat("Hello", "java") → "ellojava"
S17_minCat("java", "Hello") → "javaello"

...Save, Compile, Run (ctrl-enter)

public String S17_minCat(String a, String b) { }

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: 100

Copyright Nick Parlante 2017 - privacy