test
// alert(jQuery());
function print(string){
document.write(string+"");
};
document.write("********无返回值的情况***************");
(function(){
var jq = (function(){
var jq = fun...
分类:
编程语言 时间:
2014-05-15 11:14:55
阅读次数:
373
1. synchronized
If two threads are using the same function( here we use output to print out string) of another instance, if we want to make sure that these two threads are not disturbing each other.
...
分类:
其他好文 时间:
2014-05-15 11:14:14
阅读次数:
389
1.HashMap的遍历
package com.sheepmu;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import java.util.Map.Entry;
public class KMPText
{
public static void main(String[] ar...
分类:
其他好文 时间:
2014-05-15 07:05:19
阅读次数:
507
5道题目分别是:【Interleaving String】、【Validate Binary Search Tree】、【Sqrt(x) 】、【Recover Binary Search Tree 】、【Climbing Stairs 】,由于有一些题目不需要发一整篇博文来记录,所以就将这些题目以一篇博文5道来记录。...
分类:
其他好文 时间:
2014-05-15 06:30:55
阅读次数:
301
【题目】
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I I G
Y I R
And then read line by line: "PAHNAPLSI...
分类:
其他好文 时间:
2014-05-15 04:30:57
阅读次数:
313
Student类有集合属性Courses,如何把Student连同集合属性Courses传递给控制器方法?
public class Student { public string StudentName { get; set; } public IList
Courses { get; set; ...
分类:
Web程序 时间:
2014-05-14 12:49:24
阅读次数:
351
/*题目描述:
给定两个整数A和B,其表示形式是:从个位开始,每三位数用逗号","隔开。现在请计算A+B的结果,并以正常形式输出。 输入:
输入包含多组数据数据,每组数据占一行,由两个整数A和B组成(-10^9 #include using namespace std;int main() {
st...
分类:
其他好文 时间:
2014-05-14 12:38:11
阅读次数:
186
Java中很多class都是immutable,像String,Integer等,它们通常用来作为Map的key.
分类:
编程语言 时间:
2014-05-14 11:40:34
阅读次数:
227
最近在看Jdk6中String的源码的时候发现String的有个这样的构造方法,源代码内容如下:public String(String original)
{ int size = original.count; char[] originalValue = original.value; cha...
分类:
其他好文 时间:
2014-05-14 11:34:24
阅读次数:
274
vi编辑器是所有Unix及Linux系统下标准的编辑器,它的强大不逊色于任何最新的文本编辑器,这里只是简单地介绍一下它的用法和一小部分指令。由于对Unix及Linux系统的任何版本,vi编辑器是完全相同的,因此您可以在其他任何介绍vi的地方进一步了解它。Vi也是Linux中最基本的文本编辑器,学会它...
分类:
系统相关 时间:
2014-05-14 11:02:39
阅读次数:
485