Need a mixes datatype array

I need to code this in java. I need to create an array containing the data points (ID, employee name, department, year or service, salary). I later need to be able to add to the array, remove from the array and search data from the array. I made a table using an object array but I couldn’t retrieve data from the array in a different class.

String[]columnNames = {“ID”, “Name”, “Department”, “Years”, “Salery” };
Object[][] data = {

I think it being an object made calling it in the class I needed it for not work.