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

 

siochi@cnu.edu > isSorted
prev  |  next  |  chance

Write a boolean method that accepts an array of int and returns true if the ints are in sorted, ascending order.


isSorted([1, 2, 3]) → true
isSorted([1, 2, 3, 4, 5, 6, 7, 8, 9]) → true
isSorted([-9, -8, -7, -6, -5, -4]) → true

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

public boolean isSorted(int[] ra) { }

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