Java IntelljIDEA中的终端未按预期输出结果
我尝试使用BigInteger学习它的属性和方法。我写了一个实验班来做一些基本的算术运算。然而,当我试图输出结果时,终端似乎不工作,好像根本没有输出。我有办法解决这个问题吗 这是我的密码:Java IntelljIDEA中的终端未按预期输出结果,java,intellij-idea,biginteger,Java,Intellij Idea,Biginteger,我尝试使用BigInteger学习它的属性和方法。我写了一个实验班来做一些基本的算术运算。然而,当我试图输出结果时,终端似乎不工作,好像根本没有输出。我有办法解决这个问题吗 这是我的密码: import java.math.BigInteger; public class exp{ public static void main(String[] args){ BigInteger num1 = new BigInteger("2342342342423423
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中启动程序,则输出将显示在运行窗口中,而不是终端中。如果用绿色三角形在IJ中启动程序,则输出将显示在运行窗口中,而不是终端中。谢谢!问题解决了。我还在学习如何使用IDE。谢谢!问题解决了。我还在学习如何使用IDE。