Online Java Compiler By
JavaTpoint.com
import java.math.BigInteger; public class BigIntegerDivideExample1{ public static void main(String[] args){ // create 3 BigIntegerobjects BigInteger big1,big2,big3; big1= new BigInteger("-111"); big2= new BigInteger("5"); // divide big1 with big2 big3= big1.divide(big2); String str="Result of divide operation is "+big3; System.out.println(str); } }
Output