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

 

ringWorldReverse1


On RingWorld, some of the aliens talk backwards. Write a method that has an input string. Return that string in reverse order. The only string commands you may used are: .length .charAt .equals and .substring


ringWorldReverse1("RingWorld") → "dlroWgniR"
ringWorldReverse1("abcdefghijklmnop") → "ponmlkjihgfedcba"
ringWorldReverse1("emag eht tsol tsuj uoy") → "you just lost the game"

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

public String ringWorldReverse1(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