![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
番茄看不起西红柿
学习是不断的探索未知的领域
展开
-
爬虫基础文档讲解(不包含代码)之 “实时票房”网站的爬取
猫眼电影票房网站数据获取原创 2022-10-28 16:33:10 · 74 阅读 · 0 评论 -
JAVA 、ZIP解压文件
ZipFile zipFile = new ZipFile("C:\\Users\\renyanbin\\Desktop\\XXXX.zip",Charset.forName("GBK")); Enumeration<? extends ZipEntry> entries = zipFile.entries(); while(entries.hasMoreElements()) { ZipEntry nextElem...原创 2022-04-16 22:57:38 · 701 阅读 · 0 评论 -
Stream 流 List<Map<String,String>> 转换Map<String,Map<String,String>>
JDK8 版本LinkedHashMap<String, LinkedHashMap<String, String>> testItem = query.stream().collect(Collectors.groupingBy(p -> p.get("PROJECT_TYPE"))) .entrySet().stream().collect( Collectors.toMap((p) -> p.getKey().eq...原创 2022-03-04 18:39:17 · 1965 阅读 · 1 评论 -
Servlet 文件下载 HttpServletRequest
代码展示: public void download(HttpServletRequest request, HttpServletResponse response) throws IOException { File file = new File("C:\\Users\\renyanbin\\Desktop\\XXXX\\XXXX.docx"); if (file.exists()) { System.out.println("文件存原创 2021-12-02 20:58:41 · 222 阅读 · 0 评论 -
统计一个数组中出现数字的个数
private static void demo(String [] arr) { Map<String, Integer> map =new HashMap<String, Integer>(); for (int i = 0; i < arr.length; i++) { if (map.get(arr[i]...原创 2019-11-25 14:59:45 · 1015 阅读 · 0 评论 -
最简便的方法处理Java处理手机号中间5位替换成*
public static void main(String[] args) { String s="01234567891"; String temp=""; temp=s.replace(s.substring(3, 8), "*****"); System.out.println(temp); }很简单...原创 2019-06-10 15:08:49 · 1611 阅读 · 1 评论