Cooperation between tasksAs you’ve seen, when you use threads to run more than one task at a time, you can keep one task from interfering with another task’s resources by using a lock (mutex) to synchronize the behavior of the two tasks. That is,
from:http://www.rgagnon.com/javadetails/java-0438.htmlSome notes from A. Gonzales about String.split()Special cases using String.split():public class StringSplit { public static void main(String args[]) throws Exception{ System.out.println(
http://java.decompiler.free.fr/The “Java Decompiler project” aims to develop tools in order to decompile and analyze Java 5 “byte code” and the later versions.JD-Core is a library that reconstructs Java source code from one or more “.class” files.
public class Outer { private int index = 100; public void func(final int a) { final int b = 0;//只有 fianl 才可以被函數裡面的內部類訪問 class Middle { private int index = 101; class Inner { private int index =
關鍵字說明● ? 萬用字元類型● <? extends T> 表示類型的上界,表示參數化型別的可能是T 或是 T的子類● <? super T> 表示類型下界(Java Core中叫超類型限定),表示參數化型別是此類型的超類型(父類型),直至Objectextends 樣本 static class Food{} static class Fruit extends Food{} static class Apple extends Fruit{}
AnnotationAnnotaions (also known as metadata) provide a formalized way to add information to yourcode so that you can easily use that data at some later point.Defining annotationsHere is the definition of the annotation above. You can see that
DOM,SAX和JAXPDOM: Document Object ModelSAX: Simple API for XML 有沒有辦法讓我們在更換解析器時,不用對己發布的程式做任何改動呢?JAXP API可以協助我們實現這一點.為了屏蔽具體廠商的實現,讓java開發人員以一種標準的方式對XML進行編程,SUN公司制定了JAXP(Java API for XML
http://www.codeproject.com/KB/java/woxserializer.aspxThis article explains how to use WOX to serialize Java objects to XML. One of its main features is the generation of standard XML, which is language independant.IntroductionThis article explains