例如
import java
import java
public class Test {
public static void main(String[] args){
String str="a+b*c/d";
Pattern p=Pattern
Matcher m=p
String [] value=new String[
int i=
while(m
System
value[i]=m
i++;//下標加
}
//輸出數組元素
for(int j=
System
}
}
}
From:http://tw.wingwit.com/Article/program/Java/JSP/201311/20012.html