String (int n, String statement, String singleEnding, String multipleEnding) { final StringBuilder buf = new StringBuilder(); buf.append(n); buf.append(' '); buf.append(statement); if (n % 10 == 1 && n % 100 != 11) { buf.append(singleEnding); } else { buf.append(multipleEnding); } return buf.toString(); }