OP solved the kata
This comment has been reported as abusive
The error you're encountering is because Arrays.sort() doesn't return an array but instead sorts the array in place. So, you can't directly use Arrays.equals() to compare the sorted arrays. You need to sort the arrays first and then compare them.
Arrays.sort()
Arrays.equals()
OP solved it, closing
Because your convertion from int[] to List is wrong.
int[]
List
you're very welcome
seems like you passed the kata?
in which case, if your question was fully answered, close it out by clicking Mark question as resolved
question
Mark question as resolved
at least this:
getNumericValue
NumericValue
and there is more, but start with these
Loading collection data...
OP solved the kata
This comment has been reported as abusive
The error you're encountering is because
Arrays.sort()
doesn't return an array but instead sorts the array in place. So, you can't directly useArrays.equals()
to compare the sorted arrays. You need to sort the arrays first and then compare them.OP solved it, closing
Because your convertion from
int[]
toList
is wrong.you're very welcome
seems like you passed the kata?
in which case, if your
question
was fully answered, close it out by clickingMark question as resolved
at least this:
getNumericValue
notNumericValue
and there is more, but start with these