摘要: import java.util.Stack; import java.util.StringTokenizer; /** * 逆波兰式计算 * java 运算公式运算得出结果 可以计算负数,保留小数位数 * @Date: 2018/9/6 11:41 * @Description: */ publ 阅读全文
posted @ 2020-04-05 15:15 爱上胡萝卜的猴子 阅读(271) 评论(0) 推荐(0) 编辑
摘要: /** * @des 找出n以内的质数 20 * 2 3 5 7 9 11 13 15 17 19 * @param n */ private static void print(int n) { if (n<2){ return; } System.out.print("2 "); for (in 阅读全文
posted @ 2020-04-05 15:04 爱上胡萝卜的猴子 阅读(272) 评论(0) 推荐(0) 编辑
摘要: /** * @des 一个数的最小因子的连乘 * 2*2*2*2*2*2*5*5*5*5*5*5*=1000000 * @param a */ private static void min(int a) { int b =a; StringBuilder stringBuilder = new S 阅读全文
posted @ 2020-04-05 14:46 爱上胡萝卜的猴子 阅读(505) 评论(0) 推荐(0) 编辑