【发布时间】:2018-12-03 03:33:23
【问题描述】:
String a = "77*b+7-77/98+6";
String b[] = a.split("[*+-/]"); // works fine
b[] = a.split("[+/- *]"); // gives pattern syntax exception because of " * "
b[] = a.split("[*/+-]"); // works fine
b[] = a.split("[-*]"); // works fine
请帮我解决这个问题。
【问题讨论】: