NormalizeAngle.java 483B

1234567891011121314151617181920212223242526
  1. import java.util.Scanner;
  2. public class NormalizeAngle {
  3. Scanner scan = new Scanner(System.in);
  4. public Integer normalizeValueUsingModulo(Integer angle){
  5. return (angle % 360);
  6. }
  7. public Integer normalizeValueUsingFloorMod(Integer integer){
  8. return Math.floorMod(integer,360);
  9. }
  10. public static void main(String[] args){
  11. NormalizeAngle norm = new NormalizeAngle();
  12. }
  13. }