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.
- Prepare
- Java
- BigNumber
- Java BigDecimal
- Discussions
Java BigDecimal
Java BigDecimal
Sort by
recency
|
515 Discussions
|
Please Login in order to post a comment
import java.math.BigDecimal; import java.util.*; class Solution{
for (int i=n; i>=0; i--) { for (int j=0; j
}
Arrays.sort(s, 0, n, (String a,String b) ->{return new BigDecimal(b).compareTo(new BigDecimal(a));});
import java.io.; import java.util.; import java.math.*;
public class Solution {
}
Hello friends! I'm at this problem and try to figure out how ti solve it. i didn't pass 3 tests and I which what those are. The main problom for me is when i convert from string array to bigdecimals array some values suffering modifications like this : string array -> ".12" ==> to bigDecimals -> "0.12" and i don't want to happend. I've searched all internet but nothing can helped me. Do you have any advice? Thank you!