摘要: 转载自http://blog.csdn.net/cjl5678/article/details/8948799段页式存储管理的概念。 阅读全文
posted @ 2015-11-29 15:51 scottwang 阅读(174) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.csdn.net/lonelyroamer/article/details/7868820一、Java泛型的实现方法:类型擦除前面已经说了,Java的泛型是伪泛型。为什么说Java的泛型是伪泛型呢?因为,在编译期间,所有的泛型信息都会被擦除掉。正确理解泛型概念的首要前... 阅读全文
posted @ 2015-11-24 15:35 scottwang 阅读(356) 评论(0) 推荐(1) 编辑
摘要: 1、“覆盖”私有方法public class PrivateOverride { private void f() { print("private f()"); } public static void main(String[] args) { PrivateOverride po =... 阅读全文
posted @ 2015-11-22 10:47 scottwang 阅读(560) 评论(0) 推荐(0) 编辑
摘要: 转载自http://blog.csdn.net/orzlzro/article/details/7017435Java 不支持泛型数组。也就是说,List[] ls = new ArrayList[10];是不支持的,而List[] ls = new ArrayList[10]却可以。看到sun的一... 阅读全文
posted @ 2015-11-21 17:05 scottwang 阅读(309) 评论(0) 推荐(1) 编辑
摘要: 题目描述:The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read... 阅读全文
posted @ 2015-11-16 21:53 scottwang 阅读(322) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will... 阅读全文
posted @ 2015-11-16 21:07 scottwang 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.The Sudoku board could be partially filled, where empty cells are filled... 阅读全文
posted @ 2015-11-15 20:53 scottwang 阅读(854) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted ... 阅读全文
posted @ 2015-11-15 16:49 scottwang 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 在《java编程思想》中,java中的 \\ 表示“我要插入一个正则表达式的反斜线,所以其后的字符具有特殊的意义。”如果想插入一个普通的反斜线,那么应该使用 \\\\。理解:我们使用的反斜杠,就是一个 \但是在java等编程语言中,我们需要使用转义:一个文艺反斜杠 \\ 表示一个普通反斜杠 \正则表... 阅读全文
posted @ 2015-11-14 14:55 scottwang 阅读(258) 评论(0) 推荐(0) 编辑
摘要: 题目描述:Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in th... 阅读全文
posted @ 2015-11-12 20:30 scottwang 阅读(183) 评论(0) 推荐(0) 编辑