会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
yinsenxin
博客园
首页
新随笔
联系
管理
订阅
2020年8月18日
Java遍历List集合的几种方式
摘要: Java遍历List的几种方式 package com.mybatis.demo.collection; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.fu
阅读全文
posted @ 2020-08-18 10:59 yinsenxin
阅读(793)
评论(0)
推荐(0)
2020年7月28日
Java数组拷贝copy
摘要: Java数组拷贝 方法一 : 利用for循环进行数值的copy,生成新的数组; 示例如下: package com.mybatis.demo.bk; import java.util.Arrays; /** * @author yinsenxin */ public class BkArray {
阅读全文
posted @ 2020-07-28 10:44 yinsenxin
阅读(882)
评论(0)
推荐(0)
2020年7月16日
Java数组排序 升序/降序
摘要: 数组排序 数组排序,使用Arrays.sort();默认升序, 通过Arrayutils.reveser()方法 颠倒数组顺序,实现降序功能; package com.mybatis.demo.exercise; import org.apache.commons.lang.ArrayUtils;
阅读全文
posted @ 2020-07-16 16:25 yinsenxin
阅读(4808)
评论(0)
推荐(1)
Java数组转换集合
摘要: 数组转换集合 方法一 : 数组转换集合 package com.mybatis.demo.exercise; import java.util.ArrayList; import java.util.Arrays; import java.util.List; /** * @author yinse
阅读全文
posted @ 2020-07-16 15:39 yinsenxin
阅读(1758)
评论(0)
推荐(0)
Java数组去重
摘要: Java数组去重 将数组转换成集合,利用集合进行去重 package com.mybatis.demo.exercise; import java.util.*; /** * * @author yinsenxin */ public class ArrayRemoveSame { public s
阅读全文
posted @ 2020-07-16 15:02 yinsenxin
阅读(508)
评论(0)
推荐(0)
2019年10月24日
Java数组倒置
摘要: Java数组之 -- 数组倒置 方法一 : 1 package mytest; 2 3 public class test2 { 4 5 public static void main(String[] args) { 6 7 //1. 将数组 倒置 as: 1,2,0,4,5 => 5,4,0,2
阅读全文
posted @ 2019-10-24 16:47 yinsenxin
阅读(1992)
评论(0)
推荐(0)
2019年10月23日
Java数组最大值和最小值
摘要: package com.mybatis.demo.exercise; /** * @author yinsenxin */ public class ArrayMaxAndMin { public static void main(String[] args) { //定义一个 int 类型的 一维
阅读全文
posted @ 2019-10-23 17:19 yinsenxin
阅读(759)
评论(0)
推荐(0)
公告