i have a JTextField, the values entered in to the text field should be added to one dimensional array after a click of a button.
its an int array. the values entered into the text field are separated by a comma i.e. 12,23,2,0,1
how am i meant to separate these values and add each one of them to an array?
any suggestions will be appreciated