导航

2018年9月14日

摘要: package Integer;import java.util.Arrays;public class GetNextAsc { public static int getNextAsc(int obj) { String temp = obj + ""; char[] chars = temp. 阅读全文

posted @ 2018-09-14 20:25 骄阳照林 阅读(455) 评论(0) 推荐(0) 编辑

2018年8月29日

摘要: package String;public class DuplicateString { public static boolean isDup(String s) throws Exception { if(s==null) { return false; } if(s.length() >10 阅读全文

posted @ 2018-08-29 20:52 骄阳照林 阅读(145) 评论(0) 推荐(0) 编辑

2018年8月28日

摘要: package ProduceQueueProduce;import java.util.Queue;public class ProducerThread extends Thread { public static Queue<Object> q; private int eleNum =15; 阅读全文

posted @ 2018-08-28 02:04 骄阳照林 阅读(157) 评论(0) 推荐(0) 编辑

2018年8月27日

摘要: package ThreadABC;public class MyThread extends Thread { public static int status = 0; @Override public void run() { while (true) { synchronized (MyTh 阅读全文

posted @ 2018-08-27 02:24 骄阳照林 阅读(120) 评论(0) 推荐(0) 编辑

摘要: package ThreadABC;public class Share { private volatile int status; public int getStatus() { return status; } public void setStatus(int status) { this 阅读全文

posted @ 2018-08-27 01:02 骄阳照林 阅读(272) 评论(0) 推荐(0) 编辑

2018年8月22日

摘要: public class PrintArrayLoop { public static void printArrayForLoopWay(int[][] arr) { if (arr == null || arr.length == 0 || arr[0] == null || arr[0].le 阅读全文

posted @ 2018-08-22 12:15 骄阳照林 阅读(401) 评论(0) 推荐(0) 编辑

2016年7月29日

摘要: 思想: dp 状态转移方程:dp[i]=Σdp[i-nums[k]] 0<=k<=nums.length 代码: 阅读全文

posted @ 2016-07-29 17:44 骄阳照林 阅读(139) 评论(0) 推荐(0) 编辑

2015年12月13日

摘要: public class TestB { public static void permutation(String str,Set set){ if(str==null) return; int len=str.length(); if(len==0 || len==1)return; ... 阅读全文

posted @ 2015-12-13 22:40 骄阳照林 阅读(203) 评论(0) 推荐(0) 编辑

摘要: public class TestB { public static void permutation(String str,Set set){ if(str==null) return; int len=str.length(); if(len==0 || len==1)return; ... 阅读全文

posted @ 2015-12-13 22:40 骄阳照林 阅读(223) 评论(0) 推荐(0) 编辑

摘要: Java代码:class A{ int x; int y; A(int x,int y){ this.x=x; this.y=y; } public int hashCode() { int result = 17; result = 37 * result +... 阅读全文

posted @ 2015-12-13 21:02 骄阳照林 阅读(147) 评论(0) 推荐(0) 编辑