Here you can find the source of pluralize(int value, CharSequence singularForm, CharSequence pluralForm)
public static String pluralize(int value, CharSequence singularForm, CharSequence pluralForm)
//package com.java2s; //License from project: Open Source License public class Main { public static String pluralize(int value, CharSequence singularForm, CharSequence pluralForm) { return Integer.toString(value) + " " + (value == 1 ? singularForm : pluralForm); }//from w ww .j a v a 2 s . c om }