摘要:1 package com.algorithm.test; 2 3 import java.util.ArrayDeque; 4 import java.util.Scanner; 5 6 public class DfsAndBfs { 7 8 private static final int[][] dir = { 9 ...
阅读全文
摘要:1 package com.algorithm.test; 2 /** 3 * 最大子序列 4 * @author LiFen 5 * 6 */ 7 public class LargestSubsequence { 8 public static void main(String[] args) { 9 int[] arr = {4,-3,5,...
阅读全文
摘要:1 public JTable query(String table) throws SQLException { 2 DefaultTableModel tablemodel = new DefaultTableModel(); 3 String sql = "SELECT * FROM " + table + ";"; 4 Statem...
阅读全文