上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
摘要: public class test2411{ //员工年龄排序 by myself 时间O(n) 空间O(n) public static void sortAges(int[] ages){ int[] array = new int[100];//正常员工年龄的取值范围... 阅读全文
posted @ 2014-08-22 14:02 seven7seven 阅读(130) 评论(0) 推荐(0) 编辑
摘要: public class test231{//从左下角或右上角开始查找 bymyself public static boolean findN(int[][] array, int n){ if(array==null) return false; int ... 阅读全文
posted @ 2014-08-22 10:24 seven7seven 阅读(141) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/seven7seven/p/3907345.html 阅读全文
posted @ 2014-08-21 21:40 seven7seven 阅读(108) 评论(0) 推荐(0) 编辑
摘要: http://blog.csdn.net/lm312177697/article/details/8091611一:简答题(30)1:数据库以及线程发生死锁的原理及必要条件,如何避免死锁答:产生死锁的原因主要是:(1) 因为系统资源不足。(2) 进程运行推进的顺序不合适。(3) 资源分配不当等。产生... 阅读全文
posted @ 2014-08-21 20:59 seven7seven 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 注意:不能synchronized(j) 因为j是基本数据类型,不是对象!package one;/** * 加一线程与减一线程共同操作一个数 两个问题: 1、线程同步--synchronized 2、线程之间如何共享同一个j变量--内部类 * */public class test { p... 阅读全文
posted @ 2014-08-14 22:22 seven7seven 阅读(220) 评论(0) 推荐(0) 编辑
摘要: public class test{ public static void main(String args[]){ System.out.println(fun("账户余额:235,467.20")); } public static String fun(... 阅读全文
posted @ 2014-08-14 22:05 seven7seven 阅读(151) 评论(0) 推荐(0) 编辑
摘要: 打印:public class test{ public static void main(String args[]){ fun(9); } public static void fun(int n){ for(int i=1; i<=... 阅读全文
posted @ 2014-08-14 21:41 seven7seven 阅读(131) 评论(0) 推荐(0) 编辑
摘要: import java.io.File;public class test { public static void main(String[] args) throws Exception { //递归显示C盘下所有文件夹及其中文件 File root = new File("c:"); s... 阅读全文
posted @ 2014-08-14 21:25 seven7seven 阅读(135) 评论(0) 推荐(0) 编辑
摘要: import java.util.*;import java.util.regex.Matcher;import java.util.regex.Pattern;public class test{ public static void main(String args[]){ ... 阅读全文
posted @ 2014-08-14 21:20 seven7seven 阅读(656) 评论(0) 推荐(0) 编辑
摘要: 共8中基本数据类型,包括boolean(1比特) 阅读全文
posted @ 2014-08-14 10:49 seven7seven 阅读(181) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页