Here you can find the source of pluralise(String string, double size)
public static String pluralise(String string, double size)
//package com.java2s; //License from project: Open Source License public class Main { public static String pluralise(String string, double size) { return size > 1 ? string + (string.endsWith("s") ? "es" : "s") : string; }/*from w w w. jav a 2 s.co m*/ }