Hi. I was wondering if anyone knows how to split a string. I did find a code on it; but it's based on a pattern.
Can anyone help me to split a string into letters..
e.g. "Like" --> "L", "i", "k", "e"
im4tion 0 Newbie Poster
Recommended Answers
Jump to PostTokens? If you're using StringTokenizer, don't. Use the .toCharArray() method that hooknc mentioned.
Loop through each character using a FOR loop and determine if it's either a letter that should be changed or a symbol that should stay the same. You can do this by checking the characters' ASCII …
All 3 Replies
Reply to this topic Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.