I have a class Employee
which has a method that returns a 2D array with some employee information.
I have another class TestEmployee
in the same package where I create an object test of the class Employee
and then print this object.
Employee test = new Employee();
System.out.println(test);
Now this test object should print the array I created in Employee
. I am not able to write the code to do that. Can someone please help me with this question?
Thanks