How do I join two seperate data together into arraylist?

public void addRecord (ArrayList studentList) {

String sNumber = (txtSNumber.getText());

String data = (txtData.getText());

studentList.add(sNumber);

txtArea.setText("Data Entered");

}

How would I be able to join sNumber and data and add them into the arraylist studentList?

[317 byte] By [victorxua] at [2007-11-27 3:29:49]
# 1
Done. Should have tried myself instead of just expecting help, so sorry :)
victorxua at 2007-7-12 8:32:50 > top of Java-index,Java Essentials,Java Programming...