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

java±àÂë¹æ·¶_Îļþ×éÖ¯

     ×î½ü£¬¶Ô²¿ÃŵÄjava±àÂë¹æ·¶½øÐÐÁËÕû¶Ù£¬Ð´Á˱¾Îĵµ¹©´ó¼Ò²Î¿¼£¬ÇëÖ¸Õý¡£
1.       ΪʲôҪÖƶ©±àÂë¹æ·¶
ºÃµÄ´úÂë·ç¸ñ²»½öÄÜÌá¸ß¿É¶ÁÐÔ£¬¶øÇÒ»áʹ´úÂë¸ü½¡×³£¬¸üΪÖØÒªµÄÊÇÔÚÐÞ¸Äʱ²»ÈÝÒ׳ö´í¡£ÔÚÏÖ´úÈí¼þ¿ª·¢ÖУ¬Î¬»¤¹¤×÷»áÕ¼ÓÃ80%µÄʱ¼ä£¬¶øÇÒ¿ª·¢ÕߺÍά»¤Õßͨ³£²»ÊÇͬһ¸ö³ÌÐòÔ±¡£ÕâÒâζ×ÅÄã¾­³£ÒªÔĶÁºÍÐÞ¸ÄËûÈË¿ª·¢µÄ³ÌÐò£¬ËûÈËҲͬÑù¿ÉÄÜÐèÒªÔĶÁºÍÐÞ¸ÄÄ㿪·¢µÄ³ÌÐò¡£¼ÈÈ»Èç´Ë£¬´ó¼ÒºÎ²»×ñÊØÒ»ÖµÄJAVA±àÂë¹æ·¶£¬°ÑÕâÀûÈËÀû¼ºµÄÊÂÇé×÷ºÃÄØ£¿
 
2.       Îļþ×éÖ¯(File Organization)
Ò»¸öÎļþÓɱ»¿ÕÐзָî¶ø³ÉµÄ¶ÎÂäÒÔ¼°±êʶÿ¸ö¶ÎÂäµÄ¿ÉѡעÊ͹²Í¬×é³É¡£³¬¹ý2000ÐеijÌÐòÄÑÒÔÔĶÁ£¬Ó¦¸Ã¾¡Á¿±ÜÃ⡣ÿ¸öJavaÔ´Îļþ¶¼°üº¬Ò»¸öµ¥Ò»µÄ¹«¹²Àà»ò½Ó¿Ú¡£Èô˽ÓÐÀàºÍ½Ó¿ÚÓëÒ»¸ö¹«¹²ÀàÏà¹ØÁª£¬¿ÉÒÔ½«ËüÃǺ͹«¹²Àà·ÅÈëͬһ¸öÔ´Îļþ¡£¹«¹²Àà±ØÐëÊÇÕâ¸öÎļþÖеĵÚÒ»¸öÀà»ò½Ó¿Ú¡£
2.1  ¿ªÍ·×¢ÊÍ(Beginning Comments)
ËùÓеÄjavaÎļþÔÚ¿ªÍ·¶¼Ó¦ÓÐ×¢ÊÍ£¬ÁгöÀàÃû¡¢°æ±¾ÐÅÏ¢¡¢ÈÕÆںͰæȨÉùÃ÷£º
/*
* Classname
*
* Version information
*
* Date
*
* Copyright notice
*/
2.2  °üºÍÒýÈëÓï¾ä(Package and Import Statements)
ÔÚ¶àÊýJavaÔ´ÎļþÖУ¬µÚÒ»¸ö·Ç×¢ÊÍÐÐÊÇ°üÓï¾ä¡£ÔÚËüÖ®ºó¿ÉÒÔ¸ú import Óï¾ä¡£importÖбê×¼µÄ°üÃûÒªÔÚ±¾µØµÄ°üÃû֮ǰ£¬¶øÇÒ°´ÕÕ×Öĸ˳ÐòÅÅÁС£Èç¹û import ÐÐÖаüº¬ÁËͬһ¸ö°üÖеIJ»Í¬×ÓĿ¼£¬ÔòÓ¦¸ÃÓà * À´´¦Àí¡£ÀýÈ磺
package java.awt;
import java.awt.peer.CanvasPeer;
2.3  Àà(Class)
Ê×ÏÈÊÇÀàµÄ×¢ÊÍ£¬Ò»°ãÊÇÓÃÀ´½âÊÍÀàµÄ¡£
/**
 * A class representing a set of packet and byte counters
 * It is observable to allow it to be watched, but only
 * reports changes when the current set is complete
 */
½ÓÏÂÀ´ÊÇÀඨÒ壬°üº¬ÁËÔÚ²»Í¬µÄÐÐµÄ extends ºÍ implements
public class CounterSet extends Observable implements Cloneable{}
2.4  ÀàµÄ³ÉÔ±±äÁ¿(Class Fields)
/**
 * Packet counters
 */
protected int[] packets;
public µÄ³ÉÔ±±äÁ¿±ØÐëÉú³ÉÎĵµ(JavaDoc)¡£proceted¡¢private ºÍ package ¶¨ÒåµÄ³ÉÔ±±äÁ¿Èç¹ûÃû×Öº¬ÒåÃ÷È·µÄ»°£¬¿ÉÒÔûÓÐ×¢ÊÍ¡£
2.5  ´æÈ¡·½·¨
½ÓÏÂÀ´ÊÇÀà±äÁ¿µÄ´æÈ¡µÄ·½·¨¡£ËüÖ»ÊǼòµ¥µÄÓÃÀ´½«


Ïà¹ØÎĵµ£º

Java ¶àÏ̱߳à³ÌÖ®Áù£ºÏß³ÌÖ®¼äµÄͨÐÅ£¨¸½Ô´´úÂ룩

Java ¶àÏ̱߳à³ÌÖ®Áù£ºÏß³ÌÖ®¼äµÄͨÐÅ£¨¸½Ô´´úÂ룩
Ô´´úÂëÏÂÔØ
       
¶àÏ̱߳à³ÌÖУ¬Ïß³ÌÖ®¼äµÄͨÐÅÊÇÒ»¸ö±È½Ï¸´ÔÓµÄÎÊÌâ¡£´ó¼ÒÍùÍù¸ã²»¶®Ê²Ã´ÊǾºÕù×ÊÔ´£¿Ê²Ã´Ê±ºò¿¼ÂÇͬ²½£¿Ôõô½øÐÐͬ²½£¿Ê²Ã´ÊÇÏß³ÌͨÐÅ£¿Ôõô½øÐÐͨÐÅ£¿ºÜ
¶àÅóÓÑÃæÊÔµÄʱºò¶¼Óöµ½¹ýÕâÑùÀàËƵÄÒ»¸ö±à³ÌÌ⣺¸ø¶ ......

Java 7¾ö¶¨°üº¬±Õ°ü ·¢²¼ÈÕÆÚÍƳÙÖÁ2010Äêµ×


ÔÚDevoxx 2009£¨Ò»ÄêÒ»¶ÈµÄJavaÉçÇø´ó»á£¬½ñÄêÔÚ11ÔÂ16-20ÈÕ¾ÙÐУ©ÉÏ£¬SunÐû²¼½«ÔÚJDK 7ÖÐÔö¼Ó±Õ°ü¹¦ÄÜ¡£Õâ¸ö¹¦ÄܵÄÌí¼Ó½«´ÓFCM v0.5£¨First-Class Methods£¬µÚÒ»Àà·½·¨£©µÄÓï·¨ºÍÓïÒ⿪ʼ×ÅÊÖ¡£FCMÓëJCAÔ­±¾Ò»Í¬±»Ìá½»£¬È»¶øSunÐû²¼JCA½«²»ÔÚJDK 7Öп¼ÂÇ¡£
 
ͬʱ£¬Sun±íʾJava 7µÄ·¢²¼Ê±¼ä½«±»ÍƳÙÖÁ2010Äêµ×¡£ ......

Android G1 JAVAÐéÄâ»ú

Blog from http://forum.xda-developers.com/showthread.php?t=552846
I've just pushed new Hero Java app into my rogers build and it works fine.
What you basically need is:
Jbed.apk (install with adb install)
libjbedvm.so (adb push /system/lib) - remember to remount as RW.
I strongly suggest to ......

JAVA ·´Éä

   Äú²éѯµÄ¹Ø¼ü´ÊÊÇ£ºnewinstance object initargs  ¡£Èç¹û´ò¿ªËÙ¶ÈÂý£¬¿ÉÒÔ³¢ÊÔ¿ìËٰ棻Èç¹ûÏë±£´æ¿ìÕÕ£¬¿ÉÒÔÌí¼Óµ½ËѲء£
(°Ù¶ÈºÍÍøÒ³http://bbs.iaiai.com/forum/read.php?tid=2690µÄ×÷ÕßÎ޹أ¬²»¶ÔÆäÄÚÈݸºÔ𡣰ٶȿìÕÕ½÷ΪÍøÂç¹ÊÕÏʱ֮Ë÷Òý£¬²»´ú±í±»ËÑË÷ÍøÕ¾µÄ¼´Ê±Ò³Ãæ¡£)
 Ö÷Ìâ : javaµÄ·´Éä ......

Siebel Java Data Bean: Query first record

Following codes will show you how to query the first record from DB using Java Data Bean. package com ;
import com.siebel.data.*;
import com.siebel.data.SiebelException;
public class DataBeanDemo {
private SiebelDataBean m_dataBean = null;
private SiebelBusObject m_busObject = null;
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ