Skip to content
Advertisement

how to compare 2 set values in the same arraylist in java

I have an arraylist of employees. Within this the id and name are non changeable, while the hours contracted and planned are changeable.

I have managed the first 3 questions stated below, but stuck on the last one. Besides the 3 Classe below, i also have the Class Workspace.

I have the Class Employee.

JavaScript

This exends to Class Specialist

JavaScript

And in the main

JavaScript

In the last question i want the names of the employees to be printed that have less planned than the contract states.

Advertisement

Answer

The following should work as you need it:

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement