Java String Pluralize pluralise(String string, double size)

Here you can find the source of pluralise(String string, double size)

Description

pluralise

License

Open Source License

Declaration

public static String pluralise(String string, double size) 

Method Source Code

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

Related

  1. pluralify(String term, int value)
  2. pluralise(int count, String singular, String plural)
  3. pluralise(int num, String word)
  4. pluralise(String name)
  5. pluralise(String str)
  6. pluraliseInc(int num, String word)
  7. pluraliseNoun(String noun, long count, boolean forceAppendingSByDefault)
  8. pluralize(final int count, final String singular, final String plural)
  9. pluralize(final String s)