how to create and use a print method using java
<p>Based on the code below, I need to modify the code in the Employee class by creating a specialised print method called employee print() and show how it will be used to print in the employee Test class! Any help please? Here is the code:</p>

<pre><code>class Employee1{
      String empName;
      String empNum;
      String empEmailAddress;
      int yearOfBirth;
}


public class employeeTest {
public static void main(String[] args) {
    Employee1 emp1 = new Employee1();
    emp1.empName = "Sam";
    emp1.empNum = "213-23-978";
    emp1.empEmailAddress = "sammy@company.za";



    Employee1 emp2 = new Employee1();
    emp2.empName = "Tasha";
    emp2.empNum = "315-90-274";
    emp2.yearOfBirth = 1982;

    System.out.println("Employee Name: " + emp1.empName);
    System.out.println("Employee Number: " + emp1.empNum);
    System.out.println("Email Adress: " + emp1.empEmailAddress);
    System.out.println("Year of Birth: " + emp1.yearOfBirth);

    System.out.println("Employee Name: " + emp2.empName);
    System.out.println("Employee Number: " + emp2.empNum);
    System.out.println("Email Address: " + emp2.empEmailAddress);
    System.out.println("Year of Birth: " + emp2.yearOfBirth);
}
</code></pre>

<p>}</p>
