I want to make a method that will mix up words in this pattern:
For example:
String "What's" becomes At'swhay (this is usually called the piglatin)
I have found the method to re arrange the words that way but the problem is that if the original words starts with a capital then the transformed word must also starts with a capital. I've tried many different ways using the String method toUpperCase, but it wont work for a char (the first letter of the beginning of the word). Does any one know how to develop this algorithm?
2006-10-29
18:16:21
·
2 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design