September 2nd, 2002, 08:40 PM
how to break up a string as two strings
i need to know how i can break up a string into two strings.
this is a dog --> this(1st string), Is a dog(2nd string)
Lim kok beng --> Lim(1st string), Kok beng (2nd string)
after that set both the string 1st char to upper case..
pls help asap.....
September 2nd, 2002, 11:55 PM
check out the StringTokenizer class..
you're going to have to write a function
As for the conversion:
string1 = "this";
c1 = string1.charAt(0); // c1 becomes 't'
chUpper = c1.toUpperCase();
// key functions:
September 2nd, 2002, 11:59 PM
i had already solved the problem...