O.java- Eclipse Window Help ProblemSet.. ProblemSet DAlgorithms1 D ProblemSet.. DProblemSet. ProblemSet qi: write a public static.method named ql that takes a string as.a parameter andreturns 6 an int. The return value is the total number of times "j" and "d" appear in the input s String * Hint: If the second argument of the replace method is "" the matching characters will be 10 * removed (Replaced with nothing) 12 13 14 15 See (https://docs.oracle.com/javase/8/docs/api/java/lang/String.htmlmethod. summary) for a " complete list of methods contained in the String class. You may call any of these methods e in your method 92: Write a public static method named q2 that takes an ArrayList of Integers as a " parameter and returns an int. The returned int should be the sun of the values in the " input Arraylist at indices 16, 2, 12, and 13. You can assume the input Arraylist has size " large enough to avoid an index out of bounds exception at these indices 17 19 20 . q3: write a public static sethod named q3 that takes a HashMap with Strings as keys and . Strings as values as a parameter and returns a single String. The String returned will be , the concatenation of the Strings "popular", "taste", and "tie" followed by al1 of the keys e from the Input HashMap. Each String concatenated into the return String must be separated " by a single space 24 26 qd: write a public static method nmed 94 that take " paraneter and returns a double. This method will first iterate over the s an Arraylist of Integers as a Arraylist while computing the cube of each element and cospute the average of all of these values. Your : method will then return the cube root of this average " q5: Write a publ a double. The returned double should be the the absolute value of the first input to the lic static method named q5 that takes two doubles as paraneters and returns . power of the the square root of the second input . See : complete 1ist of methods contained in the Path class. You may call any of these aethods in (https://docs oracle.com/javase/8/docs/api/java/1ang/Math.htel Pethod. sommary) for a " your method ?Problems-javadoc l? Declaration No consoles to diplay at this time. Console:: Coverage Writable Smart Insert