My Question is how can I put the input in the txtfield into an array?
this is a picture of mt txtfield:




Posted 12 August 2012 - 07:07 AM
Posted 12 August 2012 - 07:36 AM
Posted 12 August 2012 - 08:46 AM
private void doHeapSort() {
if(arraydata.getText().equals("")){
JOptionPane.showMessageDialog (null, "Please insert values to be sorted!" );
}else
{
String inputString = arraydata.getText();
String[] stringParts = inputString.split(" ");
}
}
