delphi programming forums mysql charset mget recursive synonimos
free ventrilo servers hosting cs javascript delay python find in list
Back Forum New
abstract:

Lim kok beng --> Lim(1st string), Kok beng (2nd string)
after that set both the string 1st char to upper case..
pls help asap.....


i need to know how i can break up a string into two strings.
for eg:
this is a dog --> this(1st string), Is a dog(2nd string)
OR
Lim kok beng --> Lim(1st string), Kok beng (2nd string)
after that set both the string 1st char to upper case..
pls help asap.....

TOP

check out the StringTokenizer class..
you're going to have to write a function
As for the conversion:
Code:
  1. // example
  2. char c1;
  3. string1 = "this";
  4. c1 = string1.charAt(0);    // c1 becomes 't'
  5. chUpper = c1.toUpperCase();
  6. // key functions:
  7. // charAt();
  8. // toUpperCase();
Copy Code

TOP

thanks...
i had already solved the problem...



Lim kok beng --> Lim(1st string), Kok beng (2nd string)
after that set both the string 1st char to upper case..
pls help asap.....

TOP

Back Forum