Here you can find the source of plural(int size, String name)
Parameter | Description |
---|---|
size | a parameter |
name | a parameter |
static public String plural(int size, String name)
//package com.java2s; //License from project: Open Source License public class Main { /**/*from ww w. jav a 2 s . co m*/ * * @param size * @param name * @return */ static public String plural(int size, String name) { return "" + size + " " + name + (size > 1 ? "s" : ""); } }