随笔分类 -  随意代码

主要是一些随笔性代码
摘要:ERROR: transport library not found: dt_socket FATAL ERROR in native method: JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_LOAD(196) 阅读全文
posted @ 2021-11-13 20:08 天涯已可 阅读(1609) 评论(0) 推荐(0) 编辑
摘要:原文地址:https://www.jianshu.com/p/7cabe09ce563 亲测有效,很好用! public void downloadFiles(HttpServletRequest request, HttpServletResponse response, 其他为获取下载文件信息的 阅读全文
posted @ 2020-06-16 09:23 天涯已可 阅读(522) 评论(0) 推荐(0) 编辑
摘要:public static void main(String[] args) { while (true) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); Scanner sc2 = new Scanner(System.in); ... 阅读全文
posted @ 2018-08-23 15:37 天涯已可 阅读(342) 评论(0) 推荐(0) 编辑
摘要: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(... 阅读全文
posted @ 2017-04-24 12:07 天涯已可 阅读(344) 评论(0) 推荐(0) 编辑
摘要:/** * 输入数字返回对应英文 * * @param sourceNum * @return */ public String getNumStr(int sourceNum) { if (sourceNum map = getMap(); String sourceStr = sourceNum +... 阅读全文
posted @ 2017-01-22 09:36 天涯已可 阅读(506) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2015-10-22 12:56 天涯已可 阅读(247) 评论(0) 推荐(0) 编辑
摘要:String str1 = "ABCDE"; String str2 = "abcde44"; // 字符转换成数组 char[] arr1 = str1.toCharArray(); char[] arr2 = str2.toCharArray(); System.out.println(arr1 阅读全文
posted @ 2015-10-18 17:12 天涯已可 阅读(263) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示