Question: Solve this in java: As Lario was cleaning up the shop, he receives a call from Muigi. It's about the first plumbing job for the

Solve this in java: As Lario was cleaning up the shop, he receives a call from Muigi.
It's about the first plumbing job for the company! Lario has to bring 1 screw of each length that is divisible by 2 for a new plumbing job.
You are to help Lario with this task.
The screws are represented by their length and are given to you as an ArrayList.
Return an ArrayList of screws with distinct length.
The length should also be divisible by 2.
Example:
Input:[1,8,8,9,9,4,5]
Output:[4,8] heres the template code: /**
* No import statements needed.
* Dont change the class names or method names.
* Feel free to add any helpers.
*/
class Solution {
public ArrayList getTheRightScrews(ArrayList pipeList){
//The screws are represented by their length and are given to you as an ArrayList.
//TODO
//Return an ArrayList of screws with distinct length.
//The length should also be divisible by 2.
for(int i =0; i list.size(); i++){
}
// Example:
// Input:[1,8,8,9,9,4,5]
// Output:[4,8]
}
}
Solve this in java: As Lario was cleaning up the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!