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
|
511 Discussions
|
Please Login in order to post a comment
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!
import java.math.BigDecimal; import java.util.*; class Solution{ public static void main(String []args){ //Input Scanner sc= new Scanner(System.in); int n=sc.nextInt(); String []s=new String[n+2]; for(int i=0;i
}
Used Bubble Sort
import java.math.BigDecimal; import java.util.*; class Solution{ public static void main(String []args){ //Input Scanner sc= new Scanner(System.in); int n=sc.nextInt(); String []s=new String[n+2]; for(int i=0;i
}
import java.math.BigDecimal; import java.util.*; class Solution{ public static void main(String []args){ //Input Scanner sc= new Scanner(System.in); int n=sc.nextInt(); String []s=new String[n+2]; for(int i=0;i
}