Java String Pluralize pluralize(int count, String word)

Here you can find the source of pluralize(int count, String word)

Description

pluralize

License

Open Source License

Declaration

static String pluralize(int count, String word) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

public class Main {
    static String pluralize(int count, String word) {
        return count == 1 ? word : word + 's';
    }/*  w  w  w. j a  va  2s  . c  om*/
}

Related

  1. pluralize(int count, final String singular, final String plural)
  2. pluralize(int count, String single)
  3. pluralize(int count, String singular)
  4. pluralize(int count, String singular, String plural)
  5. pluralize(int count, String singular, String plural)
  6. Pluralize(int quantity, String units)
  7. pluralize(int value, CharSequence singularForm, CharSequence pluralForm)
  8. pluralize(long count, String singularFormat, String pluralFormat)
  9. pluralize(long strictlyPositiveCount, String singular, String plural)