
算法
iteye_2017
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
数组反转
[code="java"]public class TestReverse { public static void main(String[] args){ int[] array = {1,2,3,4,5,6,7,8,9,10}; int[] result = TestReverse.reverse(array); for(int i = 0 ; i < result....原创 2011-11-24 10:16:07 · 127 阅读 · 0 评论 -
35选7
[code="java"]public Set getLoterry2() { Set set = new HashSet(); for(int i = 0 ;;i++) { int temp = (int)(Math.random()*35 + 1); if(set.size() == 7) { break; } s...原创 2011-11-24 10:20:47 · 278 阅读 · 0 评论