Java – array index exceeds binding error when splitting string

Someone can help me find the following code problem: it always gives me one:

code

Solution

. Is a special character in a regular expression So when using the split () method, you need to escape it

use,

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>