Java tutorial
import java.math.BigInteger; public class Main { public static void main(String[] args) { BigInteger bi1 = new BigInteger("123"); BigInteger bi2 = new BigInteger("-123"); // assign absolute values of bi1, bi2 to bi3, bi4 BigInteger bi3 = bi1.abs(); BigInteger bi4 = bi2.abs(); System.out.println(bi3); System.out.println(bi4); } }