Java tutorial
//package com.java2s; public class Main { public static void checkReflectRorate(float degree) { if (degree >= 90 || degree < 0) throw new IllegalArgumentException("reflectDegree must be [0,90)!"); } }