Thanks!
-----Original Message-----
From: news [mailto:[EMAIL PROTECTED] Behalf Of Shankar Unni
Sent: Friday, February 18, 2005 4:18 PM
To: [email protected]
Subject: Re: Capitalizing names OT
David Short wrote:
> Does anyone know if there is an equivalent to the Oracle Initcap()
function?
> I am trying to write a database independent name capitalization routine.
In what language? Java?
public static String initCap(String s)
{
return (s == null || s.length() == 0) ? s :
s.substring(0,1).toUpperCase() + s.substring(1);
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]