Java String Pluralize plural(int nb)

Here you can find the source of plural(int nb)

Description

plural

License

Open Source License

Declaration

private static String plural(int nb) 

Method Source Code

//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*/
}

Related

  1. plural(int amount)
  2. plural(int count, String word, String ending)
  3. plural(int number, String form1, String form2, String form3)
  4. plural(int size, String name)
  5. plural(String arg)
  6. plural(String objectName)