How can you change characters from uppercase to lowercase? Please read description
<p>Write a program that prompts for and accepts a line of text from the user,  and then prints it out with every character in lower case except for the  characters that are immediately after a space.  These are to be Capitalized.  Thus  " aBc Def GHIJ " becomes " Abc Def Ghij "</p>

<p>I've tried all the methods on this website, I can get them all lowercased, but I can't seem to get the first letter uppercased and the ones after the white space.</p>

<p>Here is what I tried:</p>

<pre><code>import java.util.Scanner;

public class CharacterChange
{
    public static void main(String[] args)
    {
        Scanner input = new Scanner(System.in);
        System.out.print("Enter a string of characters: ");
        String s = input.nextLine();
        String result;
        for(int i = 0; i &lt; s.length(); i++){
            result = s.toLowerCase();
            if (s.isWhitespace(s[i])||s[0]){
                result = s.toUpperCase();
            }
        }
        System.out.println(result);

    }
}
</code></pre>
