In the code I posted I already showed where to put that code. In the same way you define the String array emp, that you have, you will replace it with the array of EmpleoyeeRecord.
It doesn't need a main method to use it. The String is also a class. It doesn't have a main. But you created, called it and used it.
You can create and call any class from anywhere. The main method is only when you want to run the .class file. Apart from that any class can be called and used like any other (example: String).
So just replace that array with the new array of type EmployeeRecord. wherever you have the emp you will put the EmployeeRecord