Frage im Vorstellungsgespräch bei Snap

Implement bigInteger add

Antwort im Vorstellungsgespräch

Anonym

12. Apr. 2016

import java.math.*; public class BigIntSolve { public static void main(String[] args) { BigInteger big1 = new BigInteger("123456789"); BigInteger big2 = new BigInteger("123456789"); BigInteger big3; big3 = big1.add(big2); System.out.println(big3.toString()); } }

1