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±à³Ì
¶ÔÓÚ×÷Java×ÀÃæÓ¦ÓÃÀ´Ëµ£¬±È½Ï·³È˵ľÍÊÇ°²×°²¿ÊðÎÊÌ⣬¿Í»§¶ËÊÇ·ñ°²×°ÓÐjre¡¢jre°æ±¾ÎÊÌâ¡¢jreÈ¥ÄÄÏÂÔØ¡¢ÈçºÎÓÃjreÆô¶¯ÄãµÄJavaÓ¦Ó㿲»ÒªËµ¸Õ½Ó´¥µçÄÔµÄÈË£¬¾ÍËãÊDZȽÏÊìϤµçÄÔ£¬Èç¹ûûÓнӴ¥¹ýJava,Ãæ¶ÔÒ»¸öJavaÓ¦Óã¬ÈçºÎÔÚWindowsÏÂÆô¶¯Ëü£¬¹À¼Æ¶¼»áÕÛÌÚ°ëÌì¡£Èç¹û²»ÊÇÒòΪÕ⸠......
³öÏÖÕâ¸ö´íÎó£¬ËÑË÷µ½1¡¢ÐÞ¸Äeclipse.ini£»2¡¢Ìí¼Ó»·¾³±äÁ¿JAVA_OPTS=-Xms64m -Xmx512m£¬3¡¢ÔÚrun configurations->program argumentsÔö¼ÓXms64m -Xmx512m£¬¾ùÎÞЧ¡£
×îºó½â¾ö°ì·¨£¬ÔÚÓëprogram argumentsһǽ֮¸ôµÄVM argumentsÖÐÌí¼ÓXms64m -Xmx512m¸ã¶¨¡£ ......
jdk6ºÍjdk5Ïà±ÈµÄÐÂÌØÐÔÓУº
1¡¢instrumentation
ÔÚ Java SE 6 ÀïÃ棬instrumentation °ü±»¸³ÓèÁ˸üÇ¿´óµÄ¹¦ÄÜ£ºÆô¶¯ºóµÄ instrument¡¢±¾µØ´úÂë instrument£¬ÒÔ¼°¶¯Ì¬¸Ä±ä classpath µÈµÈ¡£
2¡¢HttpÓÐËùÔöÇ¿
3¡¢ Java ¹ÜÀíÀ©Õ¹£¨JMX£© ¼Ü¹¹¼°Æä¿ò¼Ü£¬ÒÔ¼°ÔÚ Java SE 5 ÖÐÐÂÒýÈëµÄ JMX API -- java.l ......
Ò»¸ö¼òµ¥µÄË«»÷¾ÍÄÜÔËÐÐ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ÖÐÈçºÎ½øÐÐʹÓ᣶ÔÃÜÂëѧÓÐÐËȤµÄ»ï°é£¬ÍƼö¿´Bruce SchneierµÄÖø×÷£ºApplied Crypotography.ÔÚjdk1.5µÄ·¢Ðа汾Öа²È«ÐÔ·½ÃæÓÐÁ˺ܴóµÄ¸Ä½ø£¬Ò²ÌṩÁ˶ÔRSAËã·¨µÄÖ±½ÓÖ§³Ö£¬ÏÖÔÚÎÒÃÇ´ÓʵÀýÈëÊÖ½â¾öÎÊÌ⣨±¾ÎĽöÊÇ×÷Ϊ¼òµ¥½éÉÜ£©£º
Ò»¡¢ÃÜÂëѧÉÏ ......