主要是记一下

import java.math.BigInteger;
import java.util.*;
/*
输入两个用字符串 str 表示的整数,求它们所表示的数之和。
输入两个字符串。保证字符串只含有'0'~'9'字符
* */
public class Main{
    public static void main(String[] args){
        Scanner sc = new  Scanner(System.in);
        BigInteger b1 = new BigInteger(sc.nextLine());
        BigInteger b2 = new BigInteger(sc.nextLine());
        System.out.println(b1.add(b2));
    }
}