I'm running the following code in my editor for the following exercise: Sphere Online Judge (SPOJ) - Problem ADUN
Seems to run fine in my editor though I am being judged as giving the wrong answer, where am I going wrong?
import java.io.*; import java.math.BigInteger; import java.util.Scanner; class AddingTwoNumbers{ public static void main(String[] args)throws Exception{ try{ Scanner scanner = new Scanner(System.in); Scanner scanner2 = new Scanner(System.in); BigInteger count = scanner.nextBigInteger(); BigInteger count1 = scanner2.nextBigInteger(); System.out.println(addingNumbers(count,count1)); }catch(Exception e){ return; } } public static BigInteger addingNumbers(BigInteger firstLine, BigInteger secondLine){ return firstLine.add(secondLine); } }