|
-
copying a string into array of string
Hello,
I want to copy a string into array of strings. I used system.copyarray(...),but it only works for the same type of array. Now i have a string containing a lot of words and i want to assigne each word to an elemnt of the stringarray.
for example: i have the string " i am lucky but i am not";
String[] words = new words[1000];
String str ;
the question is how can i copy each wod in the string into the array.
the outpu should be :
words[0] = I
words[1] = am
words[2] =lucky
........
help..........please
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks