Return a value for the specified key. @webref intdict:method @brief Return a value for the specified key
(String key)
| 350 | * @brief Return a value for the specified key |
| 351 | */ |
| 352 | public int get(String key) { |
| 353 | int index = index(key); |
| 354 | if (index == -1) { |
| 355 | throw new IllegalArgumentException("No key named '" + key + "'"); |
| 356 | } |
| 357 | return values[index]; |
| 358 | } |
| 359 | |
| 360 | |
| 361 | public int get(String key, int alternate) { |