Java String Pluralize pluralizeName(String name)

Here you can find the source of pluralizeName(String name)

Description

pluralize Name

License

Open Source License

Declaration

public static String pluralizeName(String name) 

Method Source Code

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

public class Main {
    public static String pluralizeName(String name) {
        if (name.endsWith("s"))
            return name + "'";
        return name + "'s";
    }/*  w ww .j a  va 2  s.c o m*/
}

Related

  1. pluralize(String suggestion)
  2. pluralize(String word)
  3. pluralize(String word)
  4. pluralize(String word, int count)
  5. pluralize(String x, Integer y)
  6. pluralName(final String name)
  7. PluralTemplateHelper(int count, String singularTemplate, String pluralTemplate)