Finding second highest salary of employee in a company using java 8
step 1: Create employee class with required fields. step 2: Create one main class. step 3: Create object for employee in main class step 4: Create employee list object step 5: Add few employee data to employee list object step 6: Apply stream on list and sort step 7: Select a specific employee by using index
step 1: Create employee class with required fields. step 2: Create one main class. step 3: Create object for employee in main class step 4: Create employee list object step 5: Add few employee data to employee list object step 6: Apply stream on list and sort step 7: Select a specific employee by using index