2 Star 0 Fork 0

Freud/四则运算

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Calc.java 665 Bytes
一键复制 编辑 原始数据 按行查看 历史
Freud 提交于 2018-03-23 23:27 . Upload Calc.java
package test;
import java.util.*;
public class Calc{
public static void main(String args[]){
ArrayList<String> question=new ArrayList<String>();
System.out.println("请输入要计算的式子个数:");
Scanner sc=new Scanner(System.in);
int count=sc.nextInt();
System.out.println("请输入你要求解的式子:");
for(int i=0;i<count;i++){
sc=new Scanner(System.in);
question.add(sc.nextLine());
}
for(int i=0;i<count;i++){
System.out.print(question.get(i)+"=");
CalcFunction calc = new CalcFunction();;
calc.calc(question.get(i));
}
}
}
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/bqqyyy/four_operations.git
git@gitee.com:bqqyyy/four_operations.git
bqqyyy
four_operations
四则运算
master

搜索帮助

Dd8185d8 1850385 E526c682 1850385