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
|
493 Discussions
|
Please Login in order to post a comment
Important hint, the print is already in the lower end of the code. Hope no one wastes so much time like me because I wasn't realizing how my list was duplicating
in the Java8 version they (I don't know how intentionally) added two empty cells in the array:
You must remove them ... or you'll get an NPE in the new BigDecimal(s[i])
import java.io.; import java.util.; import java.math.BigDecimal;
public class Solution {
});