We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
//Write your code here// Sort thehe array in descending order// Custom comparator to handle specific orderArrays.sort(s,0,n,(a,b)->{BigDecimalnumA=newBigDecimal(a);BigDecimalnumB=newBigDecimal(b);returnnumB.compareTo(numA);});
Java BigDecimal
You are viewing a single comment's thread. Return to all comments →
this works: