- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 使用GregorianCalendar输出日历
//使用GregorianCalendar输出日历 package Test; import java.util.Calendar; import java.util.Date; import java.util.GregorianCalendar; import java.util.Scanner; public class Test { public static void main(St
2013-03-26 20:37:47 2079
原创 选择排序
//选择排序 package com.SelectSort; public class SelectSort { public static void main(String[] args) { int[] array = new int[]{15,27,34,12,15,22,48,1}; outPut(array); selectAscending(array);
2013-03-20 22:17:55 695
原创 插入排序法
//插入排序 package com.InsertSort; public class InsertSort { public static void main(String[] args) { int[] array = new int[]{3,69,42,18,1,25}; outPut(array); //输出数组 insertAscending(array);
2013-03-20 21:42:05 2604
原创 冒泡排序法
//冒泡排序法 package com.test; public class Sort { public static void main(String[] args) { int[] array = new int[]{2,4,2,5,3,67,4}; outPut(array); bubbingAscending(array); bubbingDscending(arra
2013-03-19 21:25:54 727
原创 2. 计算出1900年1月1日至当前日期之间总共间隔多少天,将其除以7取余数,该结果即为当月第一天是星期几,按日历格式输出
//输入一个日期,2010-10 输出该月的月历: //********************************** // 10月 //********************************** //日 一 二 三 四 五 六 // 1 2 //3 4 5 6 7 8 9 //10 11 12 13 14 15 16 //17 18 19 20 21 22 23 /
2013-03-19 11:18:31 12900 1
原创 有一个字符串s,t,d,g,h,m怎么把他转换成数组然后排序!(split的使用)
//有一个字符串s,t,d,g,h,m怎么把他转换成数组然后排序! //2013年3月12日 public class Sort { private static String str = "a,t,b,c,a,e,f"; public static void main(String[] args) { String str2[] = str.split(","); //以','作为字
2013-03-13 16:16:14 2199
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人