Question: need help in JAVA This method moved all profiles of already twice vaccinated people at the end of the Database. It returns the number of

need help in JAVA
This method moved all profiles of already twice vaccinated people at the end of the Database.
It returns the number of people who have already been vaccinated twice.
public int moveDoneToEnd(boolean secondAdministered) {
//complete code here
//THIS IS WHAT I CURRENTLY HAVE PLEASE ADD //TO IT
if(secondAdministered == true) {
return
}
}
EXTRA INFORMATION:
Example of a Profile in the Database:
public DocProfile(String Firstname, String Lastname, int dob, int medCondition, int firstDose, int secDose, boolean secondAdministered) {}
EXAMPLE OF PROFILE I CREATED THERE ARE 7 BUT THIS IS 1 OF THEM:
DocProfile profile1 = new DocProfileDB("Brady", "Tom", 20010811, 1, 20210505, 20210605, true);
Profiles that do have second Dose administered are 5
DO NOT USE **CHARAT**
IF YOU NEED MORE INFORMATION LET ME KNOW
DO NOT TURN IN BLANK ANSWER I WILL DISLIKE THE QUESTION AND REPORT YOU
PLEASE ADD OR JUST REDO THE CODE IF MY VERSION IS INCORRECT AND PLEASE EXPLAIN WHY THAT IS THE ANSWER SO I CAN UNDERSTAND BETTER

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!