Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaÖеĹܵÀÁ÷

1.ÒýÑÔ
Java I/OϵͳÊǽ¨Á¢ÔÚÊý¾ÝÁ÷¸ÅÄîÖ®Éϵģ¬¶øÔÚUNIX/LinuxÖÐÓÐÒ»¸öÀàËƵĸÅÄ¾ÍÊǹܵÀ£¬Ëü¾ßÓн«Ò»¸ö³ÌÐòµÄÊä³öµ±×÷ÁíÒ»¸ö³ÌÐòµÄÊäÈëµÄÄÜÁ¦¡£ÔÚJavaÖУ¬¿ÉÒÔʹÓùܵÀÁ÷½øÐÐÏß³ÌÖ®¼äµÄͨÐÅ£¬ÊäÈëÁ÷ºÍÊä³öÁ÷±ØÐëÏàÁ¬½Ó£¬ÕâÑùµÄͨÐÅÓбðÓÚÒ»°ãµÄShared DataͨÐÅ£¬Æä²»ÐèÒªÒ»¸ö¹²ÏíµÄÊý¾Ý¿Õ¼ä¡£
2.Ïà¹ØÀ༰Æä¹Øϵ
1£©×Ö½ÚÁ÷£º
·ÖΪ¹ÜµÀÊä³öÁ÷£¨PipedOutputStream£©ºÍ¹ÜµÀÊäÈëÁ÷£¨PipedInputStream£©£¬ÀûÓà java.io.PipedOutputStreamºÍjava.io.PipedInputStream¿ÉÒÔʵÏÖÏß³ÌÖ®¼äµÄ¶þ½øÖÆÐÅÏ¢´«Êä¡£Èç¹ûÒª½øÐйܵÀÊä³ö£¬Ôò±ØÐë°ÑÊä³öÁ÷Á¬ÔÚÊäÈëÁ÷ÉÏ¡£ java.io.PipedOutputStreamÊÇjava.io.OutputStreamµÄÖ±½Ó×ÓÀ࣬¶øjava.io. PipedInputStreamÊÇjava.io.InputStreamµÄÖ±½Ó×ÓÀà¡£PipedOutputStreamºÍ PipedInputStreamÍùÍù³É¶Ô³öÏÖ¡¢ÅäºÏʹÓ᣾ÙÀý˵Ã÷£º
TestPipe.Java
import java.io.IOException;
public class TestPipe {
    public static void main(String[] args) {
        Send s = new Send();
        Receive r = new Receive();
        try {
            s.getPos().connect(r.getPis()); // Á¬½Ó¹ÜµÀ
        } catch (IOException e) {
            e.printStackTrace();
        }
        new Thread(s).start(); // Æô¶¯Ïß³Ì
        new Thread(r).start(); // Æô¶¯Ïß³Ì
    }
}
Receive.java
import java.io.IOException;
import java.io.PipedInputStream;
class Receive implements Runnable { // ʵÏÖRunnable½Ó¿Ú
    private PipedInputStream pis = null;
    public Receive() {
        this.pis = new PipedInputStream(); // ʵÀý»¯ÊäÈëÁ÷
    }
    public void run() {
    &nb


Ïà¹ØÎĵµ£º

Java µ¼³öexcel£¨¶þ£©

import java.io.File;
import java.io.IOException;
import java.util.List;
import java.util.Map;
 
import javax.servlet.http.HttpServletRequest;
 
import jxl.Workbook;
import jxl.format.Alignment;
import jxl.format.Border;
import jxl.format.BorderLineStyle;
......

JavaÖеļòµ¥¹¤³§Ä£Ê½

 JavaÖеļòµ¥¹¤³§Ä£Ê½
      ¾ÙÁ½¸öÀý×ÓÒÔ¿ìËÙÃ÷°×JavaÖеļòµ¥¹¤³§Ä£Ê½£º
Å®æ´ÞÒÍÁÔìÈË
»°Ëµ£º“ÌìµØ¿ª±Ù£¬Î´ÓÐÈËÃñ£¬Å®æ´ÞÒÍÁΪÈË¡£”Å®æ´ÐèÒªÓÃÍÁÔì³öÒ»¸ö¸öµÄÈË£¬µ«ÔÚÅ®æ´Ôì³öÈË֮ǰ£¬È˵ĸÅÄîÖ»´æÔÚÓÚŮ洵Ä˼ÏëÀïÃæ¡£
Å®æ´ÔìÈË£¬Õâ¾ÍÊǼòµ¥¹¤³§Ä£Ê½µÄÓ¦Óá£
¡¡¡¡Ê×ÏÈ£ ......

È«ÃæÕÆÎÕjavaö¾ÙÀàÐÍ

ö¾ÙÀàÐÍÊÇJDK5.0µÄÐÂÌØÕ÷¡£SunÒý½øÁËÒ»¸öȫеĹؼü×ÖenumÀ´¶¨ÒåÒ»¸öö¾ÙÀà¡£ÏÂÃæ¾ÍÊÇÒ»¸öµäÐÍö¾ÙÀàÐ͵Ķ¨Ò壺
Java´úÂë
public enum Color{   
    RED,BLUE,BLACK,YELLOW,GREEN   
}  
public enum Color{
RED,BLUE,BLACK,YELLOW,GREEN
}
ÏÔ ......

JavaÖеÄÊÂÎñ´¦Àí

JavaÖеÄÊÂÎñ´¦Àí
¡¡¡¡Ò»°ãÇé¿öÏ£¬J2EEÓ¦Ó÷þÎñÆ÷Ö§³ÖJDBCÊÂÎñ¡¢JTA£¨Java Transaction API£©ÊÂÎñ¡¢ÈÝÆ÷¹ÜÀíÊÂÎñ¡£Ò»°ãÇé¿öÏ£¬×îºÃ²»ÒªÔÚ³ÌÐòÖÐͬʱʹÓÃÉÏÊöÈýÖÖÊÂÎñÀàÐÍ£¬±ÈÈçÔÚJTAÊÂÎñÖÐǶÌ×JDBCÊÂÎñ¡£µÚ¶þ·½Ã棬ÊÂÎñÒªÔÚ¾¡¿ÉÄ̵ܶÄʱ¼äÄÚÍê³É£¬²»ÒªÔÚ²»Í¬·½·¨ÖÐʵÏÖÊÂÎñµÄʹÓá£ÏÂÃæÎÒÃÇÁоÙÁ½ÖÖÊÂÎñ´¦Àí·½Ê½¡£
¡¡¡¡ ......

JavaÓë.NETË­ÊÇδÀ´

 ÎªÊ²Ã´»áÓÐJava£¬ÎªÊ²Ã´»áÓÐ.NET
¡¡¡¡ÓÐÈË˵£¬JavaÊÇΪÁË¿çWindowsºÍUNIX¶ø²úÉúµÄ¡£ÊÇÕâÑùÂð?
¡¡¡¡SunÓÐ×Ô¼ºµÄ²Ù×÷ϵͳsolaris£¬²¢ÇÒ´òµÄÊǸ߶ËÊг¡£¬¶øJava·¢Õ¹ÔçÆڽ׶Σ¬Windows»¹Ö÷
Òª¶¨Î»ÔÚÖÐСÐÍÆóÒµ£¬²¢Ã»ÓдòËãÓëSunÒ»Õù¸ß¶Ë¿Í»§¡£
¡¡¡¡¶øÇÒSunµÄÓû§´ó²¿·Ö¶¼ÊÇ´óÐÍÆóÒµ¼¶£¬¶øWindows¶¨Î»ÔÚ¼ÒÍ¥Ïû·ÑÓû§£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ