When you work with angle measurements, you often want them “normalized” or converted into the range between 0 . . . 359 degrees. Write a method normalize that takes an angle of any size (positive or negative) and normalizes it. For example, normalize(380) should return 20, and normalize(-30) should return 330.

Complete the following file:


public class Angles { /** Normalizes an angle. @param angle an integer angle (may be negative) @return the equivalent angle in the range 0 ... 359 */ public int normalize(int angle) { // your work here } }