09 2016 档案

摘要:package com.shb.java; /** * 取出第一个重复的字符 * @author shaobn * @date 2016-9-28 * @package_name com.shb.java */ public class Demo10 { /** * @param args * @date 2016-9-28 * @author ... 阅读全文
posted @ 2016-09-29 09:05 邻家小书童 阅读(387) 评论(0) 推荐(0)
摘要:1 package com.shb.java; 2 /** 3 * 取出第一个重复的字符 4 * @author shaobn 5 * @date 2016-9-28 6 * @package_name com.shb.java 7 */ 8 public class Demo10 { 9 10 /** 11 * @param args 12 ... 阅读全文
posted @ 2016-09-29 08:07 邻家小书童 阅读(590) 评论(0) 推荐(0)
摘要:1 package com.shb.java; 2 /** 3 * 取出第一个重复的字符 4 * @author shaobn 5 * @date 2016-9-28 6 * @package_name com.shb.java 7 */ 8 public class Demo10 { 9 10 /** 11 * @param args 12 ... 阅读全文
posted @ 2016-09-28 22:33 邻家小书童 阅读(202) 评论(0) 推荐(0)
摘要:1 package com.shb.java; 2 3 import java.util.ArrayList; 4 import java.util.Arrays; 5 import java.util.List; 6 7 /** 8 * 实现将字符串中重复次数打印出来(就是这个意思,原话描述不清了) 9 * @author shaobn 10 * @date 201... 阅读全文
posted @ 2016-09-28 21:40 邻家小书童 阅读(1543) 评论(0) 推荐(0)
摘要:package com.shb.java; public class Demo8 { public Node headNode = null; /** * @param args * @date 2016-9-28 * @author shaobn */ public static void main(String[] args)... 阅读全文
posted @ 2016-09-28 13:57 邻家小书童 阅读(3625) 评论(0) 推荐(0)
摘要:/** * 找出数组中数第二大的值 * @param array * @date 2016-9-25 * @author shaobn */ public static void getMethod_5(int[] array){ int temp = 0; int len = array.length; for(int i=0;i=array[j]){ ... 阅读全文
posted @ 2016-09-25 11:02 邻家小书童 阅读(2557) 评论(0) 推荐(0)
摘要:/** * 求数组中两两相加是20的组合数 * @param array * @param sum */ public static void getMethod_3(int[] array,int sum){ int count = 0; for(int i=0;i<array.length;i++){ ... 阅读全文
posted @ 2016-09-24 16:25 邻家小书童 阅读(1298) 评论(0) 推荐(0)
摘要:/**数组中元素重复最多的数 * @param array * @author shaobn * @param array */ public static void getMethod_4(int[] array){ Map map = new HashMap(); int count = 0; i... 阅读全文
posted @ 2016-09-24 16:09 邻家小书童 阅读(20424) 评论(0) 推荐(0)
摘要:package com.shb.java; public class Demo4 { /**时间有限 先不写文字了 自己随便敲的 * @param args * @author shaobn */ public static void main(String[] args) { // TODO Auto-generated method stub // System.o... 阅读全文
posted @ 2016-09-24 08:33 邻家小书童 阅读(242) 评论(0) 推荐(0)
摘要:package com.shb.java; /** * 将数组中的0放到数组的后边,然后原来的非零数的顺序不改变 * @author BIN * */ public class Demo2{ public static void main(String[] args){ getArray(new int[]{1,0,0,5,0}); } public static int... 阅读全文
posted @ 2016-09-21 21:39 邻家小书童 阅读(1962) 评论(0) 推荐(0)