- 浏览: 747591 次
- 性别:
- 来自: 上海
-
最新评论
-
suyujie:
引用
HTML <a> 标签灰显禁用 -
suyujie:
HTML <a> 标签灰显禁用 -
suyujie:
HTML <a> 标签灰显禁用 -
suyujie:
HTML <a> 标签灰显禁用 -
iamzhoug37:
您能说一下"局部变量不受文本顺序限制" 是 ...
声明前为什么能赋值却不能输出,都是使用
文章列表
http://www.linuxhowtos.org/System/cvs_tutorial.htm
the site above i found is great. from time to time, i'd update this thread whenever i had new digestion.
and i also cached it in the doc file associated to the thread in case its online couterpart got lost.
another:
http://www.chedong.com ...
2011.03.24
now i've been through 81 puzzles. every puzzle, i've read it as carefully and detailedly as possible, the next is the 82nd, Beer Blast.
2011.03.27
now i've arrived at the puzzle 90.
The snippet given is the following:
public class Outer {
class Inner1 extends Out ...
public class Test {
public static void main(String[] args) {
String str = "cast('09-04-2008";
String regex = "(\\d{2})-(\\d{2})";
System.out.println(str);
System.out.println(str.replaceAll(regex, "$2-$1"));
}
}
and the result yields: cast('04-0 ...
once there was a problem occurred from the Thread native mathod start0, what is it?
check the source code at j2se\src\share\native\java\lang.
http://stackoverflow.com/questions/2292629/where-to-find-source-code-for-java-lang-native-methods
import java.util.Timer;
import java.util.TimerTask;
public class Worker extends Thread {
private volatile boolean quittingTime = false;
public void run() {
while (!quittingTime)
pretendToWork();
System.out.println("Beer is good");
}
private void pretendTo ...
http://en.wikipedia.org/wiki/Initialization_on_demand_holder_idiom
public class Singleton {
// Private constructor prevents instantiation from other classes
private Singleton() {
System.out.println("constructor");
}
/**
* SingletonHolder is loade ...
public class Test {
public static void main(String[] args) {
String a = "tes";
String b = a + "t";
String c = new String("test");
System.out.println(a.intern() == a); //true
System.out.println(b.intern() == b); //false
System.out.println(b.intern() == ...
yes, bit mask can suppress sign extension, as it changes the number from negative to the positive, you see:
byte b = -1;
char c = (char)(b & 0xff);
b is originally a byte, and it's negative, after it bitwise AND with the bit mask 0xff, it then becomes positive and thus will no longer be sign ...
http://en.wikipedia.org/wiki/Lock_%28database%29
Locking not only provides exclusivity to writes but also prevents (or
controls) reading of unfinished modifications (AKA uncommitted data).
i think the exclusivity to writes only includes other writes but reads.
if not, there's no need to ...
Locking not only provides exclusivity to writes
but also prevents (or
controls) reading of unfinished modifications (AKA uncommitted data
).
my workmate told me such a senario, there're two objects, which are instantiated in a local method, respectively assigned to local variables. A class has a type B field, B class has a type A field, and their instances, each has other's instance, the following program illustrates:
class A {
B b ...
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.net.InetAddress;
import java.net.Socket;
public class PostXml {
public static void main(String[] args) {
String message = "<?xml vers ...
public class ShutdownDemo {
public static void main(String[] args) throws Exception {
// Create an Object with a finalize() method.
Object f = new Object() {
public void finalize() {
System.out.println("Running finalize()");
} ...
In computer science, the time complexity of an algorithm
quantifies
the
amount of time
taken by an algorithm to run as a function of the size of
the input to the problem.
the trunk of the above sentence is: quantify xxx time as a function of yyy
and what time? the time ta ...
Yes, im at last reading this fantastic book. it's a great book definitely.
from the past, i've been long for knowing about the principle of the computers, how do they work?
where the computing ability does it come from? is it by some transistor and their logical composition?
now, from the beginnin ...