i am a beginner .can you give me idea how we can manipulate "LARGE" integers (positive or negative) of arbitrary size. These integers could be greater than MAX_INT or smaller than MIN_INT.
using arrays or string?
using arrays or string?
BigInteger fac= BigInteger.ONE;
for (int i= 2; i <= 1000; i++)
fac= fac.multiply(new BigInteger(""+i));
System.out.println("1000! = "+fac);
Comment