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
|
492 Discussions
|
Please Login in order to post a comment
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 {
});
Using java 7:
import java.math.BigDecimal; import java.util.*; class Solution{
}