Checks that a numeric value is within the range [0..max]
(int val)
| 91 | * Checks that a numeric value is within the range [0..max] |
| 92 | */ |
| 93 | public void |
| 94 | check(int val) { |
| 95 | if (val < 0 || val > max) { |
| 96 | throw new IllegalArgumentException(description + " " + val + |
| 97 | "is out of range"); |
| 98 | } |
| 99 | } |
| 100 | |
| 101 | /* Converts a String to the correct case. */ |
| 102 | private String |