上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页

2015年1月6日

项目代码SSH整合

摘要: 工具包中代码:package util;import java.sql.*;public class DBUtil { public DBUtil() { } public static Connection getConnection() { String URL ... 阅读全文

posted @ 2015-01-06 15:30 aicpcode 阅读(228) 评论(0) 推荐(0) 编辑

例子代码:web.xml

摘要: struts2 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter struts2 /* ... 阅读全文

posted @ 2015-01-06 15:24 aicpcode 阅读(314) 评论(0) 推荐(0) 编辑

例子代码:struts.xml配置文件

摘要: /list.jsp list_book list_book ... 阅读全文

posted @ 2015-01-06 15:15 aicpcode 阅读(134) 评论(0) 推荐(0) 编辑

例子代码:hibernate.cfg.xml

摘要: org.hibernate.dialect.MySQLDialect com.mysql.jdbc.Driver jdbc:mysql://localhost:3306/bookdb root ... 阅读全文

posted @ 2015-01-06 15:14 aicpcode 阅读(135) 评论(0) 推荐(0) 编辑

矩阵中的最小路径

摘要: package 数阵中的最优路径;import java.util.Scanner;public class Main2 { /** * 数阵中的最小路径搜索 * 1:设计要点 * 应用动态规划设计从右下角逐行至左上角,确定n,m后,随机产生的整数二维数组a(n... 阅读全文

posted @ 2015-01-06 14:32 aicpcode 阅读(256) 评论(0) 推荐(0) 编辑

最优路径问题

摘要: 最优路径问题package 数阵中的最优路径;import java.util.Scanner;public class Main { /** * 数值三角形中的最大路径 * 随机产生一个n行的点数值三角形(第k行有k个点,每个点都带有一个正整数,)寻找从顶点开始每一步可沿着左... 阅读全文

posted @ 2015-01-06 13:27 aicpcode 阅读(535) 评论(0) 推荐(0) 编辑

2015年1月4日

邮箱抓取代码

摘要: import java.awt.BorderLayout;import java.awt.Dimension;import java.awt.Image;import java.awt.MenuItem;import java.awt.PopupMenu;import java.awt.Toolki... 阅读全文

posted @ 2015-01-04 23:01 aicpcode 阅读(191) 评论(0) 推荐(0) 编辑

struts-JFreechart的整合

摘要: 1:导入架包jfreechart-1.0.9.jar2:写actionpackage actions;import java.util.List;import org.jfree.chart.ChartFactory;import org.jfree.chart.JFreeChart;import ... 阅读全文

posted @ 2015-01-04 21:27 aicpcode 阅读(182) 评论(0) 推荐(0) 编辑

常胜将军

摘要: 常胜将军package 城市之间的最短距离;import java.util.Scanner;public class Main { /** * 常胜将军的 * @param args */ static int computer,user,last; ... 阅读全文

posted @ 2015-01-04 21:15 aicpcode 阅读(160) 评论(0) 推荐(0) 编辑

最短路径问题

摘要: 最短路径问题求解城市之间的最短距离是一个非常实际的问题,某个地区有n个城市,如何选择路线使得选择的线路到某个指定的城市距离最短。算法分析:某个地区的n个城市构成一个交通图:每个城市代表图中的定点。两个城市之间的边表示这两个城市之间的距离。这样求解两个城市之间的距离的路径就归结为该图的最小的路径问题对... 阅读全文

posted @ 2015-01-04 20:23 aicpcode 阅读(186) 评论(0) 推荐(0) 编辑

上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 20 下一页

导航