Here you can find the source of plural(String str, String suffix, int count)
public static String plural(String str, String suffix, int count)
//package com.java2s; //License from project: Open Source License public class Main { public static String plural(String str, String suffix, int count) { if (count == 1) return str; else/*from w w w . ja va 2 s . c o m*/ return str + suffix; } }