- 博客(7)
- 资源 (2)
- 问答 (1)
- 收藏
- 关注
原创 科大讯飞实训之查看指定文件夹的所有文件--递归
package com.cw.main;import java.io.File;public class Test { public static void main(String[] args) { String path = "d://javaapi"; File file = new File(path); list(file); } public static
2017-03-27 10:52:39 725
原创 科大讯飞之Comparator比较器
package com.cw.test;import java.util.Comparator;import java.util.Set;public class TreeSet { public static void main(String[] args) { Set set = new java.util.TreeSet(new Comparator() { @Ov
2017-03-21 16:41:00 235
原创 讯飞实训之ArrayUtil工具类
ArrayUtil里面包含数组的基本操作,选择冒泡排序,转置,删除,插入package com.cw.test;public class ArrayUtil { // 数组的转置 public static void reverse(int[] arr) { for (int i = 0; i < arr.length / 2; i++) { int temp = arr[i
2017-03-02 17:00:19 194
原创 讯飞实训之冒泡排序
冒泡排序算法每一趟找出最大的一个值public static void sort(int[] arr) { for (int i = 0; i < arr.length; i++) { for (int j = 0; j < arr.length - i - 1; j++) { if (arr[j] > arr[j + 1]) { int temp = arr[j]
2017-03-02 14:53:35 152
原创 讯飞实训之数组
对数组求平均值,求和,求极值,冒泡排序法package com.cw.arrays;public class Main { public static void main(String[] args) { int[] arrs = new int[] { 78, 56, 1, 99, 25, 15 }; float max = getAvg(arrs); System.out.p
2017-03-01 10:48:00 210 1
原创 讯飞实训之字符串
StringBuffer的使用package com.cw.string;public class StringBufferDemo { public static void main(String[] args) { StringBuffer sb = new StringBuffer(); sb.append("123456"); // 16 34 70 142 286
2017-02-28 17:46:45 217
mysql查询同系列商品
2023-12-19
为什么安卓post表单对了却登不上
2016-01-30
TA创建的收藏夹 TA关注的收藏夹
TA关注的人