只有注册用户登录后才能阅读该文。 阅读全文
posted @ 2013-11-28 14:46 钢板 阅读(16) 评论(0) 推荐(0) 编辑
摘要: package com.xxxx.utils;import java.io.BufferedWriter;import java.io.File;import java.io.FileOutputStream;import java.io.FileWriter;import java.io.IOException;import java.io.OutputStreamWriter;import java.io.Writer;import java.util.Date;import java.util.HashMap;import java.util.List;import java.util. 阅读全文
posted @ 2013-06-13 14:54 钢板 阅读(176) 评论(0) 推荐(0) 编辑
摘要: package com.kite.test.recursion;public class Recursion { public static void main(String[] args) { // 递归实现连续整数1~n的和 int sum = calSum(100); System.out.println("递归实现连续整数1~n的和:" + sum); // 递归实现连续整数1~n的和 int sum2 = calSum2(1); System.out.println("递归实现连续整数1~n的和:" + sum2); ... 阅读全文
posted @ 2013-06-08 11:13 钢板 阅读(403) 评论(0) 推荐(0) 编辑
摘要: package com.kite.test.bubbleSort;public class BubbleSort { public static void main(String[] args) { // 待排序数组 int arr[] = { 1, 3, 4, 5, 9, 7, 10, 8, 2, 6 }; // 升序排列 bubbleSortAsc(arr); // 降序排列 bubbleSortDesc(arr); } /** * 冒泡排序Asc * * @return */ p... 阅读全文
posted @ 2013-06-08 10:58 钢板 阅读(116) 评论(0) 推荐(0) 编辑