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

 

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

Write a method that accepts an array of strings and returns that array in reverse order. Look at the test data for examples.


quiz2024_08_23_P1SLHL_reverseStr(["this is a long string", "but", "the length of the", "string", "has nothing", "to do with the order"]) → ["to do with the order", "has nothing", "string", "the length of the", "but", "this is a long string"]
quiz2024_08_23_P1SLHL_reverseStr(["xyz", "abc", "123"]) → ["123", "abc", "xyz"]
quiz2024_08_23_P1SLHL_reverseStr(["This is a test", "of your reversing ability", "do well"]) → ["do well", "of your reversing ability", "This is a test"]

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

public String[] quiz2024_08_23_P1SLHL_reverseStr(String[] words) { }

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

Copyright Nick Parlante 2017 - privacy