![](https://img-blog.csdnimg.cn/20210610212605858.png?x-oss-process=image/resize,m_fixed,h_224,w_224)
Java
Java
「已注销」
资深程序员
展开
-
Log4j报错:No appenders could be found for logger
在使用Log4j打印日志时出现如下报错:log4j:WARN No appenders could be found for logger (com.zhangzw.search.BinarySearch).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.查看官网说明:原创 2021-06-10 21:38:16 · 6224 阅读 · 0 评论 -
Java Array List Set相互转化
Array -> ListString[] arr = new String[]{"a", "b", "c", "d", "e"};List<String> list = Arrays.asList(arr); // [a, b, c, d, e]List -> ArrayList<String> list = Lists.newArrayList("a", "b", "c", "d", "e");String[] arr = list.toArray(new原创 2021-06-10 21:19:55 · 145 阅读 · 0 评论