Question: Please finish the TODO sections for the following Java code import java.util.List; import java.util.function.Function; import java.util.function.BiFunction; import java.util.function.Predicate; import java.util.Comparator; public class secondAssignment { static

Please finish the TODO sections for the following Java code

import java.util.List; import java.util.function.Function; import java.util.function.BiFunction; import java.util.function.Predicate; import java.util.Comparator;

public class secondAssignment {

static U minMum(Iterable l, Comparator c){ TODO //calculate the minimum of a List of Integers // calculate the maximum of a List of Integers }

static > int minAndMax(Iterable l){

TODO // write using fold, as ao other loops are permitted. //calculate the position of the minimum in a list of Integers //calculate the position of the maximum in a list of Strings

}

class Person{ final int salary; final String name; Person(int salary, String name){ this.salary = salary; this.name = name; } int getSalary() { return salary; } String name() { return name;} }

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!