public class NormalizeAngle { public Integer normalizeValueUsingModulo(Integer angle){ Integer normalizedAngle = mod360(angle); if(normalizedAngle<0){ normalizedAngle = normalizedAngle * (-1); } return normalizedAngle; } public Integer mod360 (Integer angle){ Integer modulus360 = angle%360; return modulus360; } public Integer normalizeValueUsingFloorMod(Integer integer){ int x = Math.floorMod(integer, 360); return x; } public static void main(String[] args){ } }