Here you can find the source of pluralize(long count, String singularFormat, String pluralFormat)
public static String pluralize(long count, String singularFormat, String pluralFormat)
//package com.java2s; //License from project: Open Source License public class Main { public static String pluralize(long count, String singularFormat, String pluralFormat) { return Math.abs(count) == 1 ? String.format(singularFormat, count) : String.format(pluralFormat, count); }/*from w w w.j av a 2 s . c om*/ }