I have this little script that gets information from an excel file. After I’ve collected the information that i need i want to combine these two arrays into one. Is that possible?
public Object[][] createData1() throws Exception {
Object[][] retObjArr1 = data.getTableArray("C:\\Users\\OAH\\Workspaces\\Chrome2\\Testdata2.xls", "Sheet1", "normalCustomer");
Object[][] retObjArr2 = data.getTableArray("C:\\Users\\OAH\\Workspaces\\Chrome2\\Testdata2.xls", "Sheet2", "langLogin");
return(retObjArrCombined); //I want to return one array with both arrays
}
You can use the
System.arraycopymethod (yes, all lowercase). Javadoc. You can do more stuff with arrays using thejava.util.Arraysclass.