From Textbox to Array

+1 Hasitha Jayasuriya · February 6, 2016
Hi,

How can I send all numbers in a textbox to an array ?

Thanks,
Hasitha Jayasuriya

Post a Reply

Replies

Oldest  Newest  Rating
0 Gary Whitney · February 7, 2016
The textbox contains a string.
string.split() will put them into an array.
Then make a new array of int or double the size of the string array.
Then use a for loop with a parse method to put the numbers into the array.
0 Tomb Raider(fake) · February 11, 2016
hmm i'm not sure but you can just initialize an array integer and then use a for loop along with it
  • 1

Java / Android Development

107,006 followers
About

Very popular language used to create desktop applications, website applets, and Android apps.

Links
Moderators
Bucky Roberts Administrator