我想使用该程序来检查区域,但是我无法修复它。
ex:abc,def,ghi,jkl,mno
jkl = true; abc = flase
public boolean isDistrict (String districtCheck){
StringTokenizer st = new StringTokenizer(address,",");
int tokenno = st.countTokens();
for(int i=0;i<tokenno-2;i++)
st.nextToken();
String district = st.nextToken();
if(st.nextToken()==district);
return true
else
return flase