方法类:
import java.util.Scanner;
public class Math {
public void jisuan() {
Scanner sc = new Scanner(System.in);
while (true) {
System.out.print("数字a:");
int a = sc.nextInt();
sc.nextLine();
System.out.print("输入符号(+,-,*,/):");
String jsq = sc.nextLine();
System.out.print("数字b:");
int b = sc.nextInt();
//判断:符号输入"0",或者a与b输入的都是0,就退出程序,0和0计算没有意义
if (jsq.equals("=")) {
System.exit(-1);
}
if (jsq.equals("+")) {
jia(a, b);
} else if (jsq.equals("-")) {
jian(a, b);
} else if (jsq.equals("*")) {
cheng(a, b);
} else if (jsq.