@@ -0,0 +1,1240 @@
+package java_problems.bignumber;%0D%0A%0D%0Aimport java.math.BigInteger;%0D%0Aimport java.util.Scanner;%0D%0A%0D%0A/*%0D%0A * In this problem you have to add and multiply huge numbers! These numbers are%0D%0A * so big that you can't contain them in any ordinary data types like long%0D%0A * integer.  Use the power of Java's BigInteger class and solve this problem.%0D%0A * %0D%0A * Input Format:%0D%0A * There will be two lines containing two numbers, a and b. The numbers are%0D%0A * non-negative and can have maximum 200 digits.%0D%0A * %0D%0A * Output Format:%0D%0A * Output two lines. The first line should contain a+b, and the second line%0D%0A * should contain ab. Don't print any leading zeros.%0D%0A * %0D%0A * Sample Input:%0D%0A * 1234%0D%0A * 20%0D%0A */%0D%0Apublic class JavaBigInteger %7B%0D%0A%0D%0A%09public static void main(String%5B%5D args) %7B%0D%0A        Scanner sc = new Scanner(System.in);%0D%0A        try %7B%0D%0A            System.out.print(%22Enter two non-negative numbers:%5Cn%3E %22);%0D%0A        %09BigInteger a = sc.nextBigInteger();%0D%0A            BigInteger b = sc.nextBigInteger();%0D%0A            System.out.println(a.add(b));%0D%0A            System.out.println(a.multiply(b));%0D%0A        %7D catch (Exception e) %7B%0D%0A            System.out.println(%22Error: %22 + e.getMessage());%0D%0A            System.exit(1);%0D%0A        %7D%0D%0A        sc.close();%0D%0A    %7D%0D%0A%7D

Add JavaBigInteger