android ÖÐjava±à³ÌµÄÒâÍâʼþ´¦Àí
²»¹ÜÄãÐŲ»ÐÅ£¬¼´Ê¹¶àôÊìÁ·±à³ÌµÄÈËÔ±ÔÚcodingµÄʱºò¶¼»á³öÏÖÒâÏë²»µ½µÄbug¡£ÔÚÉÏƪÎÄÕÂÖÐÎÒÔøÌáµ½£¬bugµÄÔì³ÉÊǶà¸ö·½ÃæµÄ×ۺϽá¹û£¬ÓÐЩbugÊÇ¿ÉÒÔÐÞ¸´µÄ£¬µ«ÊÇÓÐЩÂß¼ÉϵÄbugÒªÐÞ¸´¿É²»ÊÇÄÇôÈÝÒ×µÄÊÂÇ飬¾ÍÏñÎÒÃÇ×ö´íÁËÒ»¼þÊÂÇ飬Èç¹û²»È¥´Ó¸ù±¾ÉϸÄÕý¾Í»á·¸¸ü´óµÄ´íÎóÒ»Ñù£¬ÓÐʱºòbugÒ²ÊÇÒ»¸ö»ýÀ۵Ĺý³Ì¡£
ÔÚ¾ÀúÁËandroidÉϵĿª·¢Ö®ºó£¬ÎҸıäÁËÎÒ×î³õµÄÏë·¨£¬ÈÃÎÒÈÏʶµ½Á˼´Ê¹ÔÙ¼òµ¥µÄ¿ª·¢Æ½Ì¨£¬¿ª·¢Ò»¿î²úÆ·¶¼ÐèÒªÒ»¸öÑÏÃܵÄÂß¼ÈÏÖ¤£¬ÈÏÖ¤Ö®ºóÔÙ½øÐпª·¢£¬²»½öÄÜÌá¸ß´úÂëµÄÉú²úЧÂÊ£¬»¹ÄܼõÉٺܶà²úÆ·µÄbug¡£
ÏÂÃæÊÇÎÒÓöµ½µÄһЩ»ù±¾¼òµ¥µÄbug£¬µ«ÊÇÐÞ¸´È´»¨·ÑÁËÒ»¶Îʱ¼ä£º
£¨1£©android.view.WindowManager$BadTokenException: Unable to add window --
token android.os.BinderProxy@342917f8 is not valid; is your activity
running?
ÊÇÓÉÓÚÓÐactivityʱÒÀ¸½ÓÚÁíÒ»¸öactivityµÄ£¬µ±±»ÒÀ¸½µÄactivity²úÉú´íÎóµÄʱºò£¬¸ÃactivityûÓÐÁË¿¿É½¶ø²úÉú´íÎ󡣶ÔÓÚÕâ¸ö´íÎó
»¹Ã»Óиù±¾µÄ½â¾ö°ì·¨£¬Î¨Ò»µÄ°ì·¨¾ÍÊǸıä¸ÃactivityÒÀ¸½ÓÚÁíÒ»activityµÄÊÂʵ£¬½«Æä·ÅÈëÁíÒ»activity¡£
£¨2£©01-13 17:21:04.408: WARN/System.err(20476): java.net.SocketException: The connection was reset
ÔÒòÊÇÓÉÓÚûÓйرÕsocketÁ´½ÓÔì³ÉµÄ¡£
£¨3£©java.net.SocketTimeoutException: The operation timed out
¸ÃÎÊÌâÊÇÓÉÓÚûÓⶻñÁ´½Ó³¬Ê±µÄÒì³£µ¼ÖµĴíÎó¡£ÐèÒªÔÚ´úÂëºóÃæ
catch(SocketTimeoutException e){
sendMessage(FILE_DOWNLOAD_ERROR, e);
}
£¨4£©android.view.WindowLeaked: Activity com.*.* has leaked window
Ïà¹ØÎĵµ£º
import javax.swing.JOptionPane;
public class San {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
&n ......
1.2.1 javaÐéÄâ»ú(1)
¡¡javaÐéÄâ»úÊÇÈí¼þÄ£ÄâµÄ¼ÆËã»ú£¬¿ÉÒÔÔÚÈκδ¦ÀíÆ÷ÉÏ£¨ÎÞÂÛÊÇÔÚ¼ÆËã»úÖл¹ÊÇÔÚÆäËüµç×ÓÉ豸ÖУ©°²È«²¢ÇÒ¼æÈݵÄÖ´Ðб£´æÔÚ.classÎļþÖеÄ×Ö½ÚÂë¡£javaÐéÄâ»úµÄ"»úÆ÷Âë"±£´æÔÚ.classÎļþÖУ¬ÓÐʱҲ¿ÉÒÔ³Æ֮Ϊ×Ö½ÚÂëÎļþ¡£java³ÌÐòµÄ¿çƽ̨Ö÷ÒªÊÇÖ¸×Ö½ÚÂëÎļþ¿ÉÒÔÔÚÈκξßÓÐjavaÐéÄâ»úµÄ¼ÆËã»ú»òÕßµç×ÓÉ ......
javaÐéÄâ»ú
¡¡¡¡µ«ÊÇ£¬javaÐéÄâ»úµÄ½¨Á¢ÐèÒªÕë¶Ô²»Í¬µÄÈíÓ²¼þƽ̨×öרÃŵÄʵÏÖ£¬¼ÈÒª¿¼ÂÇ´¦ÀíÆ÷µÄÐͺţ¬Ò²Òª¿¼ÂDzÙ×÷ϵͳµÄÖÖÀà¡£ÈçÏÂͼËùʾ£¬Ä¿Ç°ÔÚSPARC½á¹¹¡¢X86½á¹¹¡¢MIPSºÍPPCµÈǶÈëʽ´¦ÀíоƬÉÏ¡¢ÔÚUNIX¡¢Linux¡¢windowsºÍ²¿·Öʵʱ²Ù×÷ϵͳÉ϶¼ÓÐjavaÐéÄâ»úµÄʵÏÖ¡£ ......
ת javaÉú³ÉexeÎļþ
ÎÄÕ·ÖÀà:Java±à³Ì
¶ÔÓÚ×÷Java×ÀÃæÓ¦ÓÃÀ´Ëµ£¬±È½Ï·³È˵ľÍÊÇ°²×°²¿ÊðÎÊÌ⣬¿Í»§¶ËÊÇ·ñ°²×°ÓÐjre¡¢jre°æ±¾ÎÊÌâ¡¢jreÈ¥ÄÄÏÂÔØ¡¢ÈçºÎÓÃjreÆô¶¯ÄãµÄJavaÓ¦Ó㿲»ÒªËµ¸Õ½Ó´¥µçÄÔµÄÈË£¬¾ÍËãÊDZȽÏÊìϤµçÄÔ£¬Èç¹ûûÓнӴ¥¹ýJava,Ãæ¶ÔÒ»¸öJavaÓ¦Óã¬ÈçºÎÔÚWindowsÏÂÆô¶¯Ëü£¬¹À¼Æ¶¼»áÕÛÌÚ°ëÌì¡£Èç¹û²»ÊÇÒòΪÕ⸠......
1. ¼òµ¥¹¤³§:
(1). ´´½¨Êä³ö(Output)½Ó¿Ú
package stone;
public interface Output {
public int MAX_COUNT =10; // ×î¶à¿É´òÓ¡¶àÉÙÌõ¼Ç¼
public void show(); ......