id/email | |
password | |
forgot password | create account |
about | help | code help+videos | done | prefs |
isRectangular
Write a boolean method named isRectangular whose parameter is a string representing a two-dimensional array of int. isRectangular will return false if any of the rows of the array differ in length, otherwise true. Use method toArray() to change the String into an array. You must cut and paste method toArray() from the hint. isRectangular("{{1,1,1},{1}}") → false isRectangular("{{2,5},{1},{1,4}}") → false isRectangular("{{3}}") → true ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 330 Post-solution available
Copyright Nick Parlante 2017 - privacy