当存放的数值比long型还大时,考虑溢出,便使用字符串来存储
这里乘法采用的是小学列式乘法思路,时间效率为O(n^2)
需要 明确的是m位数A与n位数B相乘,乘积不会大于(m+n)位数
public class StringMultiply {
public static String multiply(String num1, String num2) {
if (num1.equals("0") || num2.equals("0")) return "0";
int l1 = num1.length(), l2 = num2.length(