Question: Write a JAVA program for the following question. Without importing any external libraries such as openCSV. d. Method to remove duplicate rows based on subset
Write a JAVA program for the following question. Without importing any external libraries such as openCSV.
d. Method to remove duplicate rows based on subset of columns. There should be a parameter to choose whether to keep the first, last, specific number or no occurrence. Data.dropDuplicates(new String[] {"Name"}, "first") Name Department CurrentCGPA Expected Graduation Actual graduation salary Emily Software Engineering 2. 4200 4200 Emily Artificial Intelligence 3.7 1000000 1000 Boomily Information Systems 4.3 1000 1000000 Keep = "first" Name Emily Boomily Department Software Engineering Information Systems CurrentCGPA Expected Graduation Actual graduation salary 2 4200 4200 4.3 1000 1000000
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
