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

q1: Write a public static method named q1 that takes an Arraylist of type Double

ID: 3705701 • Letter: Q

Question

q1: Write a public static method named q1 that takes an Arraylist of type Double and " returns an int. This method returns the index of the minimum result of taking the absolute value of each value from the input 2: Write a public static method named 92 that takes an Arraylist of type Character and alphabetically/lexicographically (case sensitive ordering) from the values of the input returns an int. This method returns the index of the char that comes first Chint: In java, chars are represented as ints that preserve this ordering. You can use q4: Write a public static method named q4 that takes an Arraylist of Integers as *parameter and returns a double. This method will first iterate over the Arraylist while * computing the square root of each element and compute the sum of all of these values. Your * method will then return the square root of this sum 54 68 69e /* 70 71 . q5: Write a public static method named q5 that takes a HashMap of type String to String * and returns a String. This method returns the String that comes last * alphabetically/lexicographically (case sensitive ordering) from the values of the input Chint: Use the compareTo method in the String class) 73 74 75 76

Explanation / Answer

Hi Dear,

Question is long.

As per the chegg guideline, please post each question in separate post.

I have implemented Q1 with testing.

Output:

Index of minimum double is: 1

Please DONT forgot to rate my answer. We are working hard for you Guys!!