- 博客(3)
- 收藏
- 关注
原创 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
276
原创 数组反转
[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
原创 String的基础概念代码
package string; public class BasicConcept { /* * * 在Java源代码中的每一个字面值字符串,比如下面sayHello方法里面的"Hello world" * 都会在编译成class文件阶段,形成标志号为8(CONSTANT_String_info)的常量表(这个时候常量表还不是常量池), * 接着当JVM加载 c...
2011-11-24 10:02:23
115
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人