1 Star 0 Fork 0

20175131王泽龙/BESTI.java.is.20175131

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
MyDCTest.java 925 Bytes
一键复制 编辑 原始数据 按行查看 历史
20175131王泽龙 提交于 6年前 . ShiYan5(1)
import java.util.Scanner;
public class MyDCTest {
public static void main (String[] args) {
String expression, again;
int result;
try
{
Scanner in = new Scanner(System.in);
do
{
MyDC evaluator = new MyDC();
System.out.println ("Enter a valid postfix expression: ");
expression = in.nextLine();
result = evaluator.evaluate (expression);
System.out.println();System.out.println ("That expression equals " + result);
System.out.print ("Evaluate another expression [Y/N]? ");
again = in.nextLine();
System.out.println();
}
while (again.equalsIgnoreCase("y"));
}
catch (Exception IOException)
{
System.out.println("Input exception reported");
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/WZL-DM/BESTI.java.is.20175131.git
git@gitee.com:WZL-DM/BESTI.java.is.20175131.git
WZL-DM
BESTI.java.is.20175131
BESTI.java.is.20175131
master

搜索帮助