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

 

stingMirror


Write a method that turns a string into a palendrome by appending the reverse of that string to the end. Look at the test data for examples. You may only use the following string methods: .equals .length .substring .charAt.


stingMirror("Testing") → "TestinggnitseT"
stingMirror("Abcd") → "AbcddcbA"
stingMirror("Xyz123") → "Xyz123321zyX"

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

public String stingMirror(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: 320

Copyright Nick Parlante 2017 - privacy