![](https://img-blog.csdnimg.cn/20201014180756922.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
软件开发
文章平均质量分 61
小纸人一号
这个作者很懒,什么都没留下…
展开
-
java - 用栈实现四则运算(有括号)
整型10以下的加减乘除运算,多位数的四则运算可以自己去实现,浮点型计算,可以自己再改进 public class Calculation { private Stack<String> priStack = new Stack<String>();// 操作符栈 static ArrayList<String> arr = new A...原创 2020-03-31 17:00:03 · 1004 阅读 · 0 评论 -
一个有问题的基数排序(求解)
当要排序的数字量较大时(1000+),随机数的范围比较小(1-100),排序后的数组会出现个别数字排序错误, public class 基数排序 { public static void main(String[] args) { int[] e = new int[1000]; for(int i = 0; i<e.length...原创 2020-03-04 16:32:53 · 202 阅读 · 0 评论 -
lambda表达式的简单使用
本文参考自:java8函数式编程 链接:https://blog.csdn.net/qq_28411869/article/details/82841706 public class demo1 { public static void main(String[] args) { Predicate<Integer> a =...原创 2019-12-31 15:23:34 · 106 阅读 · 1 评论