- 博客(4)
- 资源 (11)
- 收藏
- 关注
转载 java ArrayList根据存储对象排序
与c++中的qsort的实现极为相似,构建新的比较对象Comparator即可import java.util.ArrayList;import java.util.Collections;import java.util.Comparator;class Student{ public int age; private String name; public Stude
2014-12-11 16:35:07 846
转载 java正则表达式 字符串中汉字个数
String str = "北京海淀 hello world!";int count=0;Pattern pattern = Pattern.compile("[\u4e00-\u9fa5]");char c[] = str.toCharArray();for(int i=0;i<c.length;i++){ Matcher matcher = pattern.matcher(String
2014-12-11 16:13:20 3702
转载 java生成6位隨機數
生成6位随机数(不会是5位或者7位,仅只有6位):System.out.println((int)((Math.random()*9+1)*100000));同理,生成5位随机数:System.out.println((int)((Math.random()*9+1)*10000));同理,生成4为随机数:System.out.print
2014-12-11 15:49:21 20555 3
clipboard.min.js
2017-07-13
phpqrcode.php
2017-03-29
ajaxfileupload.js
2017-01-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人