String generateHTMLTable() { StringBuilder string = new StringBuilder(); string.append(""); string.append(System.lineSeparator()); string.append("".indent(2)); string.append("".indent(4)); string.append("".indent(4)); string.append("".indent(4)); string.append("".indent(4)); string.append("".indent(2)); Random random = new Random(); int number; for (int countA = 0; countA < 10; countA++) { string.append("".indent(2)); string.append("".formatted(countA).indent(4)); for (int countB = 0; countB < 3; countB++) { number = random.nextInt(1, 9999); string.append("".formatted(number).indent(4)); } string.append("".indent(2)); } string.append("
XYZ
%d%,d
"); return string.toString(); }