Skip to main content

Posts

Showing posts from August, 2006

CapitalizeWords.java

I need to make my string sentence to be capitalize on each first character of word, So far haven't find such function that I can use. So made this simple class, incase someone need it. It's GPL so free to use it and modify it. import java.util.Scanner; import java.util.ArrayList; import java.util.Iterator; import java.lang.StringBuilder; /** * * @author avenpace * I'm using singleton here so, hope you know what that means ;) * license under the GPL so free to use, modify and hack whatever you want * lemme know if this programme benefit you if you had the time */ public class CapitalizeWords { private static CapitalizeWords capinstance; private CapitalizeWords() { } /** * The method will capitalizing every first character on each word on the String sentence * This method take two parameter, * @param source source sentence string that you want to capitalize on the first character if each word. * @param allword this argument