- 博客(7)
- 资源 (7)
- 收藏
- 关注
原创 按字母排序
static void so(){ System.out.print("Please input a piece of string: "); String input = new Scanner(System.in).next().trim(); char[] ary = input.toCharArray(); Arrays.sort(ary); Str...
2012-09-10 17:40:24
124
原创 java冒泡排序
public static void sort(int[] array) { int temp; for (int i = 0; i < array.length; i++) { for (int j = 0; j < i; j++) { if (array[i] < array[j]) { temp = array[i]; array[i]...
2012-09-10 17:39:09
76
原创 android软键盘开关
[size=medium]打开软键盘:InputMethodManager inputMethodManager = (InputMethodManager) getSystemService(Context.INPUT_METHOD_SERVICE);inputMethodManager.toggleSoftInput(0, InputMethodManager.HIDE_NOT_ALW...
2012-08-07 16:33:35
176
原创 我的第一篇博客------- 《不可忽视的JAVA基础》
[color=red]Java数据类型以及存储String str1 = new String("abc"); //数据存储在堆中 String str2 = new String("abc"); //数据存储在堆中 System.out.println(str1 == str2);//比较引用地址是否相等 f...
2012-03-19 23:53:33
128
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人