I have a String array contains name, age, and gender of 10 customers. I tried to convert it to Customer array. I tried to copy each elements of String array into Customer array but it's not compatible.
How do I insert elements from String array into Customer array?
//String[] customerData is given but too long to copy
Customer[] custs = new Customer[numberOfCustomer];
for (int x = 0; x < customerData.length; x++) {
custs[x] = customerData[x];
}