Part A. Write the following methods in a class Arrays1.

Draft: Implement the isUpThenDown method.

netbrat draft | final

Part B. In the Arrays2 class, add methods

Draft: Just implement copyWithNegativesFirst.

netbrat draft | final

Part C. It is a well-known fact that in a men's restroom most people will choose the middle of the longest empty subsequence of stalls. If there is more than one such position, the one closest to the door is chosen. Implement a class MensRoom with these methods:

Draft: The constructor, toString, and add for one person.

netbrat draft | final