I am supposed to do the following:
Write a Java application (Client) program with a static method called generateEmployees( ) that returns a random list
Like Ash stated but if you need to process the records, here is no reason to introduce extra variable just do
public static void main(String[] args) { for(Employee employee: generateEmployees()) print(employee); // define static print somewhere too }