}
private static String showMask(int mask) {
- String result = "";
+ StringBuilder result = new StringBuilder();
for (int i = 0; i < TYPE_LIMIT; ++i) {
- if ((mask & (1<<i)) == 0) continue;
- if (result.length() != 0) result += " | ";
- result += FIELD_NAME[i] + " ";
+ if ((mask & (1<<i)) == 0)
+ continue;
+ if (result.length() != 0)
+ result.append(" | ");
+ result.append(FIELD_NAME[i]);
+ result.append(" ");
}
- return result;
+ return result.toString();
}
static private String[] CLDR_FIELD_APPEND = {
} else {
int n;
int state;
- String header = " Row Acc Look Tag";
+ StringBuilder header = new StringBuilder(" Row Acc Look Tag");
for (n=0; n<fHeader.fCatCount; n++) {
- header += intToString(n, 5);
+ header.append(intToString(n, 5));
}
- System.out.println(header);
+ System.out.println(header.toString());
for (n=0; n<header.length(); n++) {
System.out.print("-");
}