java split("||")字符串分割 问题

需要转义下 才行

String[] data = str.split(“\|\|”);
|在正则表达式里表示或者的意思

猜你喜欢

转载自blog.csdn.net/u011128560/article/details/82017121