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?

