public class NormalizeAngle { public Integer normalizeValueUsingModulo(Integer angle){ int newAngle = angle; while(newAngle < 0) newAngle += 360; while(newAngle > 359) newAngle -= 360; return newAngle; } public Integer normalizeValueUsingFloorMod(Integer integer){ int normalize1 = Math.floorMod(integer, 360); return normalize1; } public static void main(String[] args){ NormalizeAngle norangle = new NormalizeAngle(); } }