Here you can find the source of pluralizeName(String name)
public static String pluralizeName(String name)
//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*/ }