随笔分类 -  Apache Commons

摘要:编、解码 2进制 BinaryCodec.toAsciiString("2".getBytes()); // 00110010 BinaryCodec.fromAscii("00110010".getBytes()); // 2 64编码 Base64.encodeBase64String("啊". 阅读全文
posted @ 2023-03-18 15:10 Bruce.Chang.Lee 阅读(49) 评论(0) 推荐(0) 编辑
摘要:Collection String str = null; List list1 = Arrays.asList(new String[]{"1", "2", "3"}); List list2 = Arrays.asList(new String[]{"1", "2", "4"}); // 判断是 阅读全文
posted @ 2023-03-18 15:09 Bruce.Chang.Lee 阅读(28) 评论(0) 推荐(0) 编辑
摘要:文件名操作 String name = "/home/xxx/test.txt"; FilenameUtils.getName(name); // "test.txt" FilenameUtils.getBaseName(name); // "test" FilenameUtils.getExten 阅读全文
posted @ 2023-03-18 15:08 Bruce.Chang.Lee 阅读(48) 评论(0) 推荐(0) 编辑
摘要:builder compare concurrent event exception function math NumberUtils.INTEGER_TWO; // 2 NumberUtils.INTEGER_ONE; // 1 NumberUtils.INTEGER_ZERO; // 0 Nu 阅读全文
posted @ 2023-03-18 15:07 Bruce.Chang.Lee 阅读(41) 评论(0) 推荐(0) 编辑

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