I am really stuggling to keep up in my computer science class, and i am going to tutoring today. But these are the couple questions on my homework i cant figure out... 1. State whether the following statements are true or false: 2. Using Java's built-in sorting routines, write a line of code that will sort the array below. 3. Using Java's built-in sorting routines, write one line of code that will sort the ArrayList of strings below. 4. The following code segments have errors. Rewrite the code in each example to fix the error. ArrayList<> vals = new ArrayList<Integers>();ArrayList(Double) vals = new<> ArrayList ()5. Rewrite the following code using the enhanced for loop construct. Assume that list is of type ArrayList<Double>.