fork download
  1. import java.math.*;
  2.  
  3. class Program {
  4. public static void main (String[] args) {
  5. BigInteger bi1 = new BigInteger("-100");
  6. System.out.println(bi1.mod(new BigInteger("3")));
  7. }
  8. }
  9.  
  10. //https://pt.stackoverflow.com/q/52045/101
Success #stdin #stdout 0.07s 32860KB
stdin
Standard input is empty
stdout
2