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

JAVA×î¶Ì·¾¶´úÂë

import java.util.LinkedList;
import java.util.List;
public class ShortestPaths {
     private static String showPath[] = { "", "", "", "", "", "" }; 
      
         // ·µ»ØͼµÄ×î¶Ì·¾¶ 
         public static int[] getShortPath(int path[][]) { 
            LinkedList<Integer> savePath = new LinkedList<Integer>();// ÓÃÓÚ±£´æÒÑÌí¼Ó½øÀ´µÄ½Úµã 
            int mark = 1; 
             int shortestPath[] = new int[path.length]; 
             for (int i = 0; i < shortestPath.length; i++) { 
                 shortestPath[i] = -1; 
             } 
             savePath.add(new Integer(0)); 
             if (savePath.size() == 1) { 
                 int num = savePath.getLast().intValue(); 
                 int minIndex = 0; 
                 for (int j = 0; j < shortestPath.length; j++) { 
                     shortestPath[j] = path[num][j]; 
               


Ïà¹ØÎĵµ£º

ת javaÉú³ÉexeÎļþ

ת javaÉú³ÉexeÎļþ
ÎÄÕ·ÖÀà:Java±à³Ì
¶ÔÓÚ×÷Java×ÀÃæÓ¦ÓÃÀ´Ëµ£¬±È½Ï·³È˵ľÍÊÇ°²×°²¿ÊðÎÊÌ⣬¿Í»§¶ËÊÇ·ñ°²×°ÓÐjre¡¢jre°æ±¾ÎÊÌâ¡¢jreÈ¥ÄÄÏÂÔØ¡¢ÈçºÎÓÃjreÆô¶¯ÄãµÄJavaÓ¦Ó㿲»ÒªËµ¸Õ½Ó´¥µçÄÔµÄÈË£¬¾ÍËãÊDZȽÏÊìϤµçÄÔ£¬Èç¹ûûÓнӴ¥¹ýJava,Ãæ¶ÔÒ»¸öJavaÓ¦Óã¬ÈçºÎÔÚWindowsÏÂÆô¶¯Ëü£¬¹À¼Æ¶¼»áÕÛÌÚ°ëÌì¡£Èç¹û²»ÊÇÒòΪÕ⸠......

java.lang.OutOfMemoryError: Java heap space

      ³öÏÖÕâ¸ö´íÎó£¬ËÑË÷µ½1¡¢ÐÞ¸Äeclipse.ini£»2¡¢Ìí¼Ó»·¾³±äÁ¿JAVA_OPTS=-Xms64m -Xmx512m£¬3¡¢ÔÚrun configurations->program argumentsÔö¼ÓXms64m -Xmx512m£¬¾ùÎÞЧ¡£
×îºó½â¾ö°ì·¨£¬ÔÚÓëprogram argumentsһǽ֮¸ôµÄVM argumentsÖÐÌí¼ÓXms64m -Xmx512m¸ã¶¨¡£ ......

Java JDK °æ±¾µÄÇø±ð

jdk6ºÍjdk5Ïà±ÈµÄÐÂÌØÐÔÓУº
1¡¢instrumentation
ÔÚ Java SE 6 ÀïÃ棬instrumentation °ü±»¸³ÓèÁ˸üÇ¿´óµÄ¹¦ÄÜ£ºÆô¶¯ºóµÄ instrument¡¢±¾µØ´úÂë instrument£¬ÒÔ¼°¶¯Ì¬¸Ä±ä classpath µÈµÈ¡£
2¡¢HttpÓÐËùÔöÇ¿
3¡¢ Java ¹ÜÀíÀ©Õ¹£¨JMX£© ¼Ü¹¹¼°Æä¿ò¼Ü£¬ÒÔ¼°ÔÚ Java SE 5 ÖÐÐÂÒýÈëµÄ JMX API -- java.l ......

¹ØÓÚjava´ò°ü

Ò»¸ö¼òµ¥µÄË«»÷¾ÍÄÜÔËÐÐjarÎļþµÄ´ò°ü¹ý³Ì:
http://blog.csdn.net/ihc523/archive/2009/10/11/4636832.aspx
eclipseµ¼³öjarÎļþÔÙ½«Ëüת»»³Éexe¿ÉÖ´ÐÐÎļþ:
http://hi.baidu.com/%C4%CF%BA%BD%CC%EC%CF%C2/blog/item/1601a381ac9af9d1bd3e1e3d.html
´òJar°üµÄÒ»¸öEclipse²å¼þFatJar:
http://blog.csdn.net/lqsmn613/ar ......

Java¼ÓÃܺÍÊý×ÖÇ©Ãû 1ÏûÏ¢ÕªÒª

±¾ÎÄÖ÷Ҫ̸һÏÂÃÜÂëѧÖеļÓÃܺÍÊý×ÖÇ©Ãû£¬ÒÔ¼°ÆäÔÚjavaÖÐÈçºÎ½øÐÐʹÓ᣶ÔÃÜÂëѧÓÐÐËȤµÄ»ï°é£¬ÍƼö¿´Bruce SchneierµÄÖø×÷£ºApplied Crypotography.ÔÚjdk1.5µÄ·¢Ðа汾Öа²È«ÐÔ·½ÃæÓÐÁ˺ܴóµÄ¸Ä½ø£¬Ò²ÌṩÁ˶ÔRSAËã·¨µÄÖ±½ÓÖ§³Ö£¬ÏÖÔÚÎÒÃÇ´ÓʵÀýÈëÊÖ½â¾öÎÊÌ⣨±¾ÎĽöÊÇ×÷Ϊ¼òµ¥½éÉÜ£©£º
    Ò»¡¢ÃÜÂëѧÉÏ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ