随笔分类 - 随意代码
主要是一些随笔性代码
摘要:ERROR: transport library not found: dt_socket FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_LOAD(196)
阅读全文
摘要:原文地址:https://www.jianshu.com/p/7cabe09ce563 亲测有效,很好用! public void downloadFiles(HttpServletRequest request, HttpServletResponse response, 其他为获取下载文件信息的
阅读全文
摘要:public static void main(String[] args) { while (true) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Scanner sc2 = new Scanner(System.in); ...
阅读全文
摘要:1 public List getBetweenDateStr(Date start, Date end){ 2 if(start==null || end==null)return null; 3 List list=new ArrayList(); 4 SimpleDateFormat sdf=new SimpleDateFormat(...
阅读全文
摘要:/** * 输入数字返回对应英文 * * @param sourceNum * @return */ public String getNumStr(int sourceNum) { if (sourceNum map = getMap(); String sourceStr = sourceNum +...
阅读全文
摘要:String str1 = "ABCDE"; String str2 = "abcde44"; // 字符转换成数组 char[] arr1 = str1.toCharArray(); char[] arr2 = str2.toCharArray(); System.out.println(arr1
阅读全文