Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

JAVA-L2A2 Write a public static method named highestNum which takes an ArrayList of Integer objects, and returns the highest value in this list. Make sure

JAVA-L2A2

Write a public static method named highestNum which takes an ArrayList of Integer objects, and returns the highest value in this list. Make sure to take into account negative numbers. Write your highestNum method in the U7_L2_Activity_Two class. Use the runner class to test your method but do not add a main method to the U7_L2_Activity_Two.java file or your code will not be scored correctly.

Hint: when you write your method header, and specify the type of the parameter as an ArrayList, make sure you include the data type your ArrayList will contain in angle brackets (<>).

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Question What is the doughnut hole in HSA coverage?

Answered: 1 week ago