我有几篇大的非银案,在联安会同时处理,我如何显示剩余的时间是JProgressbar的1%?
public int countTrueAmr(String text, String under,String value, String search) {
int sLen = under.length();
int count = 0;
int index = text.indexOf(under + value, 0);
int nextIndex = text.indexOf(under, index + sLen);
while (index > 0 && nextIndex > 0) {
count += countString(text.substring(index, nextIndex), search);
index = text.indexOf(under + value, index + sLen);
nextIndex = text.indexOf(under, index + sLen);
if (nextIndex < 0)
nextIndex = text.length();
}
return count;
}
致谢......