![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java异常
Archie_java
求知若饥,虚心若愚(stay hungry,stay foolish)
好记性不如烂笔头
展开
-
Exception in thread “main“ joptsimple.UnrecognizedOptionException: zookeeper is not a recognized opt
【代码】Exception in thread "main" joptsimple.UnrecognizedOptionException: zookeeper is not a recognized opt。转载 2023-05-03 18:17:22 · 1719 阅读 · 0 评论 -
UnsupportedOperationException——操作不支持异常
UnsupportedOperationException 是用于表明操作不支持的异常。在 JDK 类中已被大量运用,在集合框架 java.util.Collections.UnmodifiableCollection 将会在所有 add 和 remove 操作中抛出这个异常。Java不支持该功能,多见于Arrays.asList(),然后使用remove和add方法。因为asarraylist的集合是一个转化来的集合,它的大小是固定的。不能进行长度修改。原创 2022-11-22 16:42:00 · 17589 阅读 · 0 评论 -
java.lang.StringIndexOutOfBoundsException: String index out of range: -1
[2022 中国 DevOps 现状调查全面启动!>>>字符串截取下标越界java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(String.java:1967)出错代码result.put("value", valueBuilder.toString().substring(0,valueBuilder.toString().原创 2022-05-18 22:43:34 · 10705 阅读 · 0 评论