Java String Pluralize plural(String str, String suffix, int count)

Here you can find the source of plural(String str, String suffix, int count)

Description

plural

License

Open Source License

Declaration

public static String plural(String str, String suffix, int count) 

Method Source Code

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

public class Main {
    public static String plural(String str, String suffix, int count) {
        if (count == 1)
            return str;
        else/*from w w w .  ja  va  2  s  . c  o  m*/
            return str + suffix;
    }
}

Related

  1. plural(int number, String form1, String form2, String form3)
  2. plural(int size, String name)
  3. plural(String arg)
  4. plural(String objectName)
  5. plural(String singular)
  6. plural(String strSingle, String strPlural, int amount)
  7. plural(String txt)
  8. plural(String type)
  9. plural(String word)