Results 1 to 3 of 3
- 08-31-2011, 06:13 AM #1
To store a String in an Array[HELP]
Suppose i have '10100145' as Input String which is stored in a variable let say ipstring.
So i have to break the string such that each digit gets stored in an array like
at arr[0] have 1,at arr[1] i have 0,at arr[2] i have 1 and so on .
So Is there any method available to do the above ?
Comments Appreciated.
Thanks & Regards
djscorpio99
- 08-31-2011, 06:58 AM #2
If you do not have to do this yourself then check out the methods of the String class. If the final array is an int array then you need to do a bit more work.
- 08-31-2011, 10:01 AM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
Can you show us here what you have done so far. Did you identified what are the steps (pseudo-code) you have to take to get this done?
Similar Threads
-
how to store string in text file
By santhosh_el in forum AWT / SwingReplies: 2Last Post: 04-03-2009, 06:21 AM -
How to add an integer to a array element and the store that backinto an array.
By Hannguoi in forum New To JavaReplies: 1Last Post: 03-31-2009, 06:40 AM -
how to store an ArrayList<string> into cookies?
By perplexingtrax in forum Java ServletReplies: 7Last Post: 01-12-2009, 12:30 AM -
Store String Tokenizer o/p onto an array
By rajchief in forum New To JavaReplies: 1Last Post: 08-08-2008, 09:00 PM -
I would then store a string...
By susan in forum AWT / SwingReplies: 1Last Post: 08-07-2007, 04:15 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks