In JAVA must use Array.length
Payroll Class
Write a Payroll class that uses the following arrays asfields:
• employseid. An array of seven integers to hold employeeidentification numbers. The
array should be initialized with the following numbers:
56588 45201 78951 87775
84512 13028 75804
• hours. An array of seven integers to hold the number of hoursworked by each
employee
• payRate. An array of seven doubles to hold each employees hourlypay rate
• wages. An array of seven doubles to hold each employees grosswages
The class should relate the data in each array through thesubscripts. For example, the
number in element 0 of the hours array should be the number ofhours
OR
OR