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

 

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

Write a method that returns a string explaining the relative values of all the number in the 'nums' array. Look at the test data for examples. Pay special attention to the boundary cases and the exact formatting. Preconditions: You may assume that 'nums' will contain at least two numbers.


quiz2023_12_13_P1SLHL_compareThem([11, 11]) → "11 is equal to 11."
quiz2023_12_13_P1SLHL_compareThem([8, 120]) → "8 is less than 120."
quiz2023_12_13_P1SLHL_compareThem([500, -900]) → "500 is greater than -900."

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

public String quiz2023_12_13_P1SLHL_compareThem(int[] nums) { }

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