Here you can find the source of plural(int nb)
private static String plural(int nb)
//package com.java2s; //License from project: Open Source License public class Main { private static String plural(int nb) { return nb > 1 ? "s" : ""; }/*from w w w . j av a 2s . co m*/ }