Java String Pluralize pluralise(int count, String singular, String plural)

Here you can find the source of pluralise(int count, String singular, String plural)

Description

pluralise

License

BSD License

Declaration

public static String pluralise(int count, String singular, String plural) 

Method Source Code

//package com.java2s;
//License from project: BSD License 

public class Main {
    public static String pluralise(int count, String singular, String plural) {
        return (count == 1) ? singular : plural;
    }/*from  w  w w  . j av a 2 s  .  c  o  m*/
}

Related

  1. plural(String word)
  2. plural(String word, Number cardinality)
  3. plural(StringBuffer buffer, int i, String s1, String s2)
  4. pluralForm(final String string, final int number)
  5. pluralify(String term, int value)
  6. pluralise(int num, String word)
  7. pluralise(String name)
  8. pluralise(String str)
  9. pluralise(String string, double size)