Biiggest Number


Please check my code

hello @Akash23
what issue u r facing?

It’s showing error in Arrays. Sort()
Basically in comparator

add bracket here -> image
I.E (X+Y) and then try

It is showing error inArrays.sort(list, new Comparator()

your logic is correct , there is some java related issue ( i m not proficient in java so cant help u with java syntax).

first convert to string and then try to sort using following comparator
image

yeah done…!! Comparator never uses primitives thats why i changed int[] to ArrayList and then i solved it

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.