Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Implement the following Java interface. ****** For 50 points extra credit, imple

ID: 3716164 • Letter: I

Question

Implement the following Java interface.

****** For 50 points extra credit, implement this interface and
also implement the same interface using generics (take out
the some-me-up method). *******

/**

* This interface specifies several

* methods for operations on an array of double

* (or int) values.

*

* An interface in Java 7 is made up of method headings only.

* These are abstract methods. The interface is abstract as well but

* because the Java compiler already "knows" this, you do not use the

* keyword abstract in the class heading.

*

* If there are any fields specified, they must be public, static, and

final.

* Because an interface is abstract, an interface cannot be instantiated.

*

* An interface is used for design purposes and for allowing classes to

be considered

* various types. In Java, you can only inherit from one superclass, but

a class can implement

* many interfaces.

*

* What a programmer does is implement an interface. This means the

programmer must override every

* method in the interface.

*

* @author

* @version

*/

public interface ArrayFunctionsInterface

{

double [ ] sortMe(double [ ] array);

double getMax(double [ ] array);

double getMin(double [ ] array);

int whereAmI(double [ ] array, double searchValue);

double sumMeUp(double [ ] array);

double [ ] reverseMe(double [ ] array);

void printMe(double [ ] array);

double[ ] doubleMyCapacity(double [ ] array);

}

Explanation / Answer

Here is the generics implementation for the inetrface you asked for. please rate thumbs up, if the answer helps you. Thanks!