Java NIO »º³å+¶ÏµãÏÂÔØ
ÓÃJAVAʵÏÖ»º³å¶àÏß³ÌÎÞ×èÈû¶ÁȡԶ³ÌÎļþ
http://ajava.org/course/java/10688.html
ʹÓÃFileChannelºÍByteBuffer
http://www.java2s.com/CN/Code/Java/File-Input-Output/useFileChannelandByteBuffer.htm
java.nio.Buffer»º³åÇø»ù´¡
http://zcdxzsz.javaeye.com/blog/310917
Java NIO Ó¦Óà -- ʹÓÃÄÚ´æÓ³ÉäÎļþʵÏÖ½ø³Ì¼äͨÐÅ
http://www.blogjava.net/Unmi/archive/2010/03/19/315940.html
¹²ÏíÄÚ´æÔÚJavaÖÐʵÏÖºÍÓ¦ÓÃ
http://www.blogjava.net/Unmi/archive/2010/03/19/315889.html
Ïà¹ØÎĵµ£º
Java´úÂë
long startTime=System.currentTimeMillis(); //»ñÈ¡¿ªÊ¼Ê±¼ä
doSomeThing(); //²âÊԵĴúÂë¶Î
long endTime=System.currentTimeMillis(); //»ñÈ¡½áÊøÊ±¼ä
System.out.println("³ÌÐòÔËÐÐʱ¼ä£º "+(endTime-startTime)+"ms");
µÚ¶þÖÖÊÇÒÔÄÉÃëΪ ......
The goal for this chapter is to introduce you to Java's native methods. If you are new to Java, you may not know what native methods are, and even if you are an experienced Java developer, you may not have had a reason to learn more about native methods. At the conclusion of this chapter you should ......
ÇëÌṩһ¸ö¶ÔiµÄÉùÃ÷£¬½«ÏÂÃæµÄÑ»·×ª±äΪһ¸öÎÞÏÞÑ»·¡£Õâ¸öÑ»·²»ÐèҪʹÓÃÈκÎ5.0°æµÄÌØÐÔ£º
while (i != 0 && i == -i) {
}
ÕâÈÔÈ»ÊÇÒ»¸öÑ»·¡£ÔÚ²¼¶û±í´ïʽ(i != 0 && i == -i)ÖУ¬Ò»Ôª¼õºÅ²Ù×÷·û×÷ÓÃÓÚi£¬ÕâÒâζ×ÅËüµÄÀàÐͱØÐëÊÇÊý×ÖÐ͵ģºÒ»Ôª¼õºÅ²Ù×÷·û×÷ÓÃÓÚÒ»¸ö·ÇÊý×ÖÐͲÙ×÷ÊýÊÇ·Ç·¨µÄ¡£Òò´Ë£ ......
ÏÂÃæÕâ¸ö¿ÉÁ¯µÄС³ÌÐò²¢²»ÄܺܺõØ×ö³öÆä×Ô¼ºµÄ¾ö¶¨¡£ËüµÄdecision·½·¨½«·µ»Øtrue£¬µ«ÊÇËü»¹·µ»ØÁËfalse¡£ÄÇô£¬Ëüµ½µ×´òÓ¡µÄÊÇÊ²Ã´ÄØ£¿ÉõÖÁ£¬ËüÊǺϷ¨µÄÂð£¿
public class Indecisive {
public static void main(String[] args) {
System.out.println(decision());
}
static boolean decision( ......
package com.zwc.www.test;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
public class OperateEnum {
//first emun
enum PeopleTypeOne{RED,YELLOW,BLACK};
//second emun
public enum PeopleTypeTwo{
RED("a","#111111"),
......