out.println("<tr><td></td></tr>");
}
static String showDifference(String as, String bs) {
Differ differ = new Differ(300, 3);
StringBuffer out = new StringBuffer();
int max = as.length();
if (max < bs.length()) max = bs.length();
for (int j = 0; j <= max; ++j) {
if (j < as.length()) differ.addA(as.substring(j, j+1));
if (j < bs.length()) differ.addB(bs.substring(j, j+1));
differ.checkMatch(j == max);
if (differ.getACount() != 0 || differ.getBCount() != 0) {
out.append("...");
if (differ.getACount() != 0) {
out.append("<span class='r'>");
for (int i = 0; i < differ.getACount(); ++i) {
out.append(differ.getA(i));
}
out.append("</span>");
}
if (differ.getBCount() != 0) {
out.append("<span class='d'>");
for (int i = 0; i < differ.getBCount(); ++i) {
out.append(differ.getB(i));
}
out.append("</span>");
}
out.append("...");
}