com.rubecula.util
Class StringUtilities

java.lang.Object
  extended by com.rubecula.util.StringUtilities

public class StringUtilities
extends java.lang.Object

Author:
Robin Hillyard

Constructor Summary
StringUtilities()
           
 
Method Summary
static java.lang.String capitalizeInitial(java.lang.String s)
           
static java.lang.String capitalizeInitial(java.lang.String s, boolean b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringUtilities

public StringUtilities()
Method Detail

capitalizeInitial

public static java.lang.String capitalizeInitial(java.lang.String s)
Parameters:
s - the string
Returns:
s but with the first character in upper case and the rest in lower case

capitalizeInitial

public static java.lang.String capitalizeInitial(java.lang.String s,
                                                 boolean b)
Parameters:
s - the string
b - whether or not to capitalize the initial
Returns:
s but with the first character in upper case (depending on value of b) and the rest in lower case


Copyright © 2010 Rubecula Software, LLC. All Rights Reserved.