![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
PROBLEMS
少年啦飞啦
这个作者很懒,什么都没留下…
展开
-
关于取模运算的特点与应用
对于取模(取余)运算%,比如A % M,结果永远都是在[0, M-1)之间循环,这一特点有很多应用场景1、最常见的就是对2取模来判断奇偶数2、循环队列中通过对最大容量取模来控制数组下标,防止索引越界...原创 2020-02-18 14:58:33 · 1314 阅读 · 0 评论 -
JAVA集合的相关处理总结
1、注意集合只能存放对象,不能存放基本类型的数据,1.5之后有了自动拆箱/装箱才弥补了这一缺点,但是有些地方转换不了要注意,比如List<int[]> result = Arrays.asList(new int[5]); // 我期望的是List<int>List<Integer> result2 = Arrays.asList(new Intege...原创 2020-02-17 12:24:09 · 91 阅读 · 0 评论 -
JAVA数组的相关处理总结
1、Java 数组元素逆序Reverse的三种方式:https://blog.csdn.net/xhibiki/article/details/82930521原创 2020-02-17 12:06:16 · 103 阅读 · 0 评论 -
JAVA字符串的相关处理总结
1、Java拼接字符串时,去掉最后一个多余字符:https://blog.csdn.net/itmyhome1990/article/details/50519206/原创 2020-02-14 17:14:42 · 84 阅读 · 0 评论 -
VUE问题汇总(一)
vue的起步教程与api:https://cn.vuejs.org/v2/guide/vue组件库:https://element.eleme.cn/#/zh-CN/component/installation1、解决vue中时间控件中获取时间少一天的问题参考:https://blog.csdn.net/molihuakai_118/article/details/94359373...原创 2019-12-10 22:41:54 · 97 阅读 · 0 评论