摘要:
/** * 计算最短路径长度 */public static int calculateShortestPath(int[][] adjacencyMatrix, String start, String end, Map<String, Integer> stationIdMap) { int n 阅读全文
posted @ 2024-06-13 16:04
kxzzow
阅读(25)
评论(0)
推荐(0)
摘要:
/** * 建立站点名称和对应的ID的哈希表 */public static Map<String, Integer> buildStationIdMap() { Connection connection = JDBCUtils.getConn(); Map<String, Integer> st 阅读全文
posted @ 2024-06-13 16:04
kxzzow
阅读(10)
评论(0)
推荐(0)
摘要:
public static int[][] adjacency() { Map<String, Integer> stationIds = buildStationIdMap(); // 调用建立站点名称和对应的ID的哈希表的函数 Connection connection = JDBCUtils. 阅读全文
posted @ 2024-06-13 16:03
kxzzow
阅读(10)
评论(0)
推荐(0)
摘要:
/** * function:起终查询 */public static String shortest(User user) { Connection connection = null; PreparedStatement preparedStatement = null; ResultSet r 阅读全文
posted @ 2024-06-13 16:00
kxzzow
阅读(11)
评论(0)
推荐(0)
摘要:
/** * function:站名查询 */public static String station(User user) { Connection connection = null; StringBuilder resultBuilder = new StringBuilder(); Logge 阅读全文
posted @ 2024-06-13 16:00
kxzzow
阅读(13)
评论(0)
推荐(0)
摘要:
/*** function:线路查询*/public static String route(User user) { Connection connection = null; StringBuilder resultBuilder = new StringBuilder(); Logger lo 阅读全文
posted @ 2024-06-13 16:00
kxzzow
阅读(13)
评论(0)
推荐(0)
摘要:
/** * function: 注册 */public static boolean register(User user) { // 根据数据库名称,建立连接 Connection connection = com.example.test_one.utils.JDBCUtils.getConn( 阅读全文
posted @ 2024-06-13 15:59
kxzzow
阅读(21)
评论(0)
推荐(0)
摘要:
/** * function: 验证登录 */public static boolean login(String account, String password) { Connection connection = null; boolean success = false; try { con 阅读全文
posted @ 2024-06-13 15:58
kxzzow
阅读(13)
评论(0)
推荐(0)
摘要:
/** * function: 完成度分析 */public static boolean ana(String account) { // 格式化日期为 "yyyy-MM-dd" 格式的字符串 try { // 构建更新语句,更新符合账户和前四天日期的 analysis 数据 String upd 阅读全文
posted @ 2024-06-13 15:58
kxzzow
阅读(13)
评论(0)
推荐(0)
摘要:
/** * function: 设置学习目标 */public static boolean tar(String title1,String main11,String t_s1,String t_e1,String p_n1,String p_p1,String room1,String acc 阅读全文
posted @ 2024-06-13 15:56
kxzzow
阅读(12)
评论(0)
推荐(0)
浙公网安备 33010602011771号