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

 

jebbert@volusia.k12.fl.us > test2020_10_01_SLHL_makePalindrome
prev  |  next  |  chance

Write a method that returns 'str' turned into a palindrome. If 'str' is already a palindrome, make it into a bigger palindrome. Look at the test data for examples.


test2020_10_01_SLHL_makePalindrome("a") → "aa"
test2020_10_01_SLHL_makePalindrome("abcd") → "abcddcba"
test2020_10_01_SLHL_makePalindrome("Loft") → "LofttfoL"

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

public String test2020_10_01_SLHL_makePalindrome(String str) { }

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

Copyright Nick Parlante 2017 - privacy