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

 

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

Write a method that returns the contents of array 'scores' which has exactly two elements, but those two elements are in reverse order. Look at the test data for examples.


test2020_10_29_APP1SLHL_scores([5, 6]) → [6, 5]
test2020_10_29_APP1SLHL_scores([1, 9]) → [9, 1]
test2020_10_29_APP1SLHL_scores([171, -3]) → [-3, 171]

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

public int[] test2020_10_29_APP1SLHL_scores(int[] scores) { }

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

Copyright Nick Parlante 2017 - privacy