« AS3 AMQP Client: First Cut | Main | Hessian Type Negotiation: Protocol Flow »

Camel Case

Recently I had to convert delimited String tokens into CamelCase Strings in Java. The input was something like "foo-bar" and the output should be "FooBar". A little googling found the TreeBind library, which does exactly that. An example of the API usage looks like this:

Util.ToUpperCamelCase("foo-bar");   // returns "FooBar"
Util.ToFirstUpper("foobar")         // returns "Foobar"

Not rocket science, but it did save me some string manipulation. BTW, I don't even know what the TreeBind API does in general.

Posted on Saturday, March 15, 2008 at 06:31PM by Registered Commenter0x6e6562 in | CommentsPost a Comment

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>