IntelljIDEA 中的终端未按预期输出结果
The terminal in IntelljIDEA is not outputting the result as expected
我试着用BigInteger学习了它的属性和方法。我写了一个实验 class 来做一些基本的算术运算。但是,当我尝试输出结果时,终端似乎无法正常工作,就好像根本没有输出一样。有什么办法可以解决这个问题吗?
这是我的代码:
import java.math.BigInteger;
public class exp{
public static void main(String[] args){
BigInteger num1 = new BigInteger("234234234242342342344545546567");
BigInteger num2 = new BigInteger("344654645635234324435465656332");
BigInteger num3=num1.multiply(num2);
BigInteger num4=num1.add(num2);
System.out.println(num3);
System.out.println(num4);
}
}
这是 IDEA 中终端的响应:
如果您在 IJ 中启动程序(带有绿色三角形),输出将出现在“运行”window,而不是终端。
我试着用BigInteger学习了它的属性和方法。我写了一个实验 class 来做一些基本的算术运算。但是,当我尝试输出结果时,终端似乎无法正常工作,就好像根本没有输出一样。有什么办法可以解决这个问题吗?
这是我的代码:
import java.math.BigInteger;
public class exp{
public static void main(String[] args){
BigInteger num1 = new BigInteger("234234234242342342344545546567");
BigInteger num2 = new BigInteger("344654645635234324435465656332");
BigInteger num3=num1.multiply(num2);
BigInteger num4=num1.add(num2);
System.out.println(num3);
System.out.println(num4);
}
}
这是 IDEA 中终端的响应:
如果您在 IJ 中启动程序(带有绿色三角形),输出将出现在“运行”window,而不是终端。