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

һλ»ÝÆÕjavaÑз¢¹¤³Ìʦ²ûÊöjavaÅàѵµÄ¸ÐÑÔ

¹¤×÷ÒѾ­ÓаëÄêÁË£¬Í»È»Ïëдµã¶«Î÷£¬´óѧµÄʱºò¾ÍÓÐдÈռǵÄÏ°¹ß£¬µ«ÊÇ×Ô´ÓÈ¥Java06°àѧϰһֱµ½ÏÖÔÚ¹¤×÷£¬ÂýÂýµÄҲûÓÐʱ¼äȥдÈռǣ¬Ï£Íûͨ¹ýÕâƪÎÄÕÂÄÜÈÃJava˽ÛÓµÄѧµÜѧÃÃÃÇ¿´ÁËÓÐËù°ïÖú¡£
    ÏàÐźܶàͬѧºÜÎÒÒ»Ñù´óËĵÄʱºò¶¼±È½ÏÃÔ㣬ÓÈÆäÊÇÎÒ¶ÁµÄ¼ÆËã»úרҵ£¬ËµÊµ»°´óѧÀïѧµÄºÍÉç»áʵ¼ÊÐèÒªµÄ»¹ÊÇÓкܴó²î¾àµÄ£¬ÄǸöʱºòµÄÎҺñÈÊÇÃÔ;µÄ¸áÑò£¬¶Ô×Ô¼ºÎ´À´Ò²ºÜÀ§»ó£¬Ò»´ÎżȻµÄ»ú»áºÍ¸ßÖеÄͬѧÁÄÌìÖеÃÖªÁËÓÐJava˽ÛÓÕâôһ¸öѧУ£¬µ±³õ»¹ÊDZ§×ÅΪÁËÕҷݹ¤×÷¶øÀ´µÄ£¬µ«ÊÇͨ¹ýËĸöÔµÄѧϰ£¬ÌرðÊǹ¤×÷ºóÈÃÎÒµÄÏë·¨ÓÐÁ˺ܴóµÄ±ä»¯¡£Ï£Íû´ó¼ÒÔÚÀ´Java˽ÛÓÇ°Ò»¶¨Òª×ª±äÏë·¨£¡
    ÎÒÈÏΪ´ó¼ÒÊ×ÏÈÒªÃ÷È·µÄÊÇ×Ô¼ºÀ´Ñ§Ï°µÄÄ¿µÄ¡£ÏàÐÅ´ó¼ÒÀ´Java˽ÛÓѧϰµÄÄ¿µÄºÜ¶à¶¼ÊÇΪÁËͨ¹ýJAVAÅàѵÕÒµ½Ò»·ÝºÃµÄ¹¤×÷£¬Ã»´í£¬ÕâÊÇÒ»¸öºÃµÄÏë·¨¡£µ«ÊDZÈÆðÕÒÒ»¸ö¹¤×÷À´Ëµ¶Ô×Ô¼ºÒÔºóµÄ³É³¤À´ËµÎÒ¾õµÃ¸üÖØÒªµÄÊÇÈ¥´ïµ½Ò»ÖÖÄÜÁ¦-----Äܹ»½øÈ빫˾¾ÍÄÜ¿ª·¢µÄÄÜÁ¦¡£¶ø²»ÊǸú×ÅÀÏʦȥ³­´úÂ룬ÊÔÏëһϣ¬ÀÏʦÔõô×ö£¬Äã¾ÍÔõôȥ³­£¬ºÍÀÏʦµÄÏîĿһģһÑù£¬ÍêÈ«ÊÇÕÕ×ÅÀÏʦµÄÏîÄ¿³­ÏÂÀ´£¬ÄÇôÄãµ½¹«Ë¾Ôõô°ì£¿À뿪ÀÏʦÔõô°ì£¿¹«Ë¾¿ÉÊÇûÓÐÈË´ø×ÅÄãÈ¥³­´úÂ룡ÓÐЩѧµÜ¿ÉÄÜ»áÎÊ×ܹ²ÏÂÀ´Ð´Á˶àÉÙÐдúÂ룬Õâ¸öÒª¿´Äã×îÖÕµÄÄ¿µÄ£¬¾ÍËãÄãдÁ˼¸Ê®ÍòÐдúÂëÈç¹û½ø¹«Ë¾»¹Íê²»³É¹«Ë¾·Ö¸øÄãµÄÄ£¿é£¬ÄÇÅàѵÓÐʲôÒâÒ壡ÖØÒªµÄÊÇÄãÒª´ïµ½µÄÄÜÁ¦£¬µ±È»¿Ï¶¨ÊÇÓÐÒ»¶¨µÄ´úÂëÁ¿µÄ»ýÀÛ£¬µ«²¢²»Äܵ¥´¿µÄÈ¥¿´ËĸöÔÂÏÂÀ´Ð´¶àÉÙ´úÂ룡
    ²Î¼ÓITÅàѵ¾ø²»ÊÇÂòÁ˱£ÏÕ,ÓÆÔÕÓÆÔÕÌÓÌÓ¿Î˯˯¾õ,¿¿Åàѵ»ú¹¹µÄ±£Ö¤¾ÍÏëµÃµ½Ò»·ÝÅàѵ»ú¹¹ËùνµÄÐû´«ÖÐÊýǧµÄ»ÒÁ칤×÷ÄÇÖ»ÄÜÊÇÒ»¸ö´«Ëµ.ÓÉÓÚÒ»°ã¶¼ÊǶÌÆÚÅàѵ,¿Î³ÌÉèÖÃÒ²±È½Ï½ô´Õ,Ò»ÌÿÎ(Ò»¸öµ¥ÔªµÄ´ó¿Î)²»ÉϵÄËðʧ¾ÍÏ൱´óÁË,Á½µ½ÈýÌÿβ»À´ÉÏ,³ý·ÇÄã¶Ô×Ô¼ºµÄ×ÔѧÄÜÁ¦Ï൱ÓÐÐÅÐÄÓÖÁ³Æ¤ºñµ½¿ÉÒÔÈÃÀÏʦ²¹ÉÏ,·ñÔò»ù±¾¿ÉÒÔ·ÅÆúÁË.ÓÐһЩÂÔÓлù´¡µÄѧԱÒòΪ֮ǰѧ¹ý(ÓÐЩֻÊǽӴ¥¹ý,´ó¸ÅÓÐЩÁ˽â)¾Í©µôһЩ¿Î²»À´ÉÏ,½á¹û×öÆð¿ÎÌÃÁ·Ï°¶¼Ö»ÄܸɵÉÑÛ.ÓÐÒ»µãÊÇÒ»¶¨ÒªÁ˽âµÄ,»á¿´´úÂëºÍ»áд´úÂëÍêÈ«ÊÇÁ½ÂëÊÂ,¾ÍÏó¶Á×÷¼ÒµÄ´ó×÷ÈÝÒ×,×Ô¼ºÐ´ÆðÒ»°ãµÄ×÷ÎÄÀ´¶¼¹·Æ¨²»Í¨ÁË.ÓÐЩÊéдµÄ21Ììѧ»áJAVA»òÕßC++ʲôʲôµÄ,ÄǾÍÊÇÈÃÄãÖªµÀÄÇÊǸöʲô¶«Î÷,ÀëÕæÕýҪȥ¸ã¿ª·¢»¹²îµÄÔ¶ÁË£¬ÒªÕæÊÇÄÇÑùÒ²¾Íû±ØÒªÅàѵÁË£¡
    Æä´ÎÒªÇå³þΪʲôҪÅàѵ.¸öÈË×ܽáÅàѵÓÐÒÔϼ¸Öֺô¦,1.¿Ë·þѧϰƿ¾±.³ýÁËÉÙÊýÅ£ÈËÒÔÍâ,Ò»°ã


Ïà¹ØÎĵµ£º

ÓÃjavaµ÷ÓÃoracle´æ´¢¹ý³Ì×ܽá

ÉùÃ÷£º
ÒÔϵÄÀý×Ó²»Ò»¶¨ÕýÈ·£¬Ö»ÊÇΪÁËÑÝʾ´ó¸ÅµÄÁ÷³Ì¡£
Ò»£ºÎÞ·µ»ØÖµµÄ´æ´¢¹ý³Ì
´æ´¢¹ý³ÌΪ£º
CREATE OR REPLACE PROCEDURE TESTA(PARA1 IN VARCHAR2,PARA2 IN VARCHAR2)  AS
BEGIN
   INSERT INTO HYQ.B_ID (I_ID,I_NAME) VALUES (PARA1, PARA2);
END TESTA;
È»ºóÄØ£¬ÔÚjavaÀïµ÷ÓÃʱ¾ÍÓÃÏÂÃæµÄ´ ......

RedHat AS4ÅäÖÃJava»·¾³

µ½SunÍøÕ¾ÏÂÔØ×Ô½âѹ°²×°°üjdk-xxxx.bin
°²×°£º
[root@RHEL4 JDK-1.5.0.06]# chmod +x jdk-xxxx.bin
[root@RHEL4 JDK-1.5.0.06]# ./jdk-xxxx.bin
Ñ¡Ôñ°²×°Î»Öã¬
J2SDK°²×°Ä¿Â¼£º /usr/local/jdk
ÅäÖÃJava»·¾³±äÁ¿£º
ÔÚ ~/.bash_profile Àï¼ÓÈëÏÂÁм¸Ðл·¾³±äÁ¿¼´¿É£º
export JAVA_HOME=/usr/local/jdk
export PAT ......

¹ØÓÚjavaµÄ¼¯ºÏÀà,ÒÔ¼°HashMapÖÐSetµÄÓ÷¨!


¹ØÓÚjavaµÄ¼¯ºÏÀà,ÒÔ¼°HashMapÖÐSetµÄÓ÷¨!
2005-10-22 14:47:43 Sat | ÔĶÁ£¨547£©´Î
package com.tiantian;
import java.util.*;
public class JAVAContainer {
     public static void main(String[] args) throws Exception {
         //&nbs ......

JAVAµ÷DLL,.JNI¼¼Êõʵ¼ù

¼øÓÚÅÀ³æ¿ª·¢ÐèÒªÒ»¸öͼƬ½âÎö¹¦Äܵĺ¯Êý£¬µ½ÍøÂçÉϲéÕÒÁËһЩjni·½ÃæµÄÄÚÈÝ£¬²¢×öÁË×Ô¼ºµÄһЩÐ޸ģ¬¾ßÌåÈçÏ£º
   Ä¿Ç°javaÓëdll½»»¥µÄ¼¼ÊõÖ÷ÒªÓÐ3ÖÖ£ºjni£¬jawinºÍjacob¡£Jni£¨Java Native Interface£©ÊÇsunÌṩµÄjavaÓëϵͳÖеÄÔ­Éú·½·¨½»»¥µÄ¼¼Êõ£¨ÔÚwindows\linuxϵͳÖУ¬ÊµÏÖjavaÓënative method»¥µ÷£©¡£ ......

javaÖеÄ̰ʳÉßÀý³Ì

×î½üÒªÖØÐÂѧϰJava£¬ÕÒ¸öÀý×ÓÀ´Êµ¼ù£¬ÔÚÍøÉÏÕÒÁ˺ܶàÀý³ÌÀ´¿´£¬×Ô¼ºÖØбàдÁËÒ»¸ö̰ʳÉßµÄÀý×Ó£¬¼ÇÔÚÕâÀï¡£
1.SnakeModel.java
import java.util.Observable;
import java.util.LinkedList;
import java.util.Arrays;
import java.util.Random;
import javax.swing.*;
//ObservableÀàÒ»°ã´ú±íÊý¾Ý£¬ÊµÏÖ½Ó¿ÚRunna ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ