|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now! |
|
#1
|
|||
|
|||
|
how to break up a string as two strings
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..... |
|
#2
|
|||
|
|||
|
check out the StringTokenizer class..
you're going to have to write a function As for the conversion: Code:
// example char c1; string1 = "this"; c1 = string1.charAt(0); // c1 becomes 't' chUpper = c1.toUpperCase(); // key functions: // charAt(); // toUpperCase(); |
|
#3
|
|||
|
|||
|
thanks...
i had already solved the problem... |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Java Help > how to break up a string as two strings |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|