Return a value for the specified key. @webref intdict:method @webBrief Return a value for the specified key
(String key)
| 365 | * @webBrief Return a value for the specified key |
| 366 | */ |
| 367 | public int get(String key) { |
| 368 | int index = index(key); |
| 369 | if (index == -1) { |
| 370 | throw new IllegalArgumentException("No key named '" + key + "'"); |
| 371 | } |
| 372 | return values[index]; |
| 373 | } |
| 374 | |
| 375 | |
| 376 | public int get(String key, int alternate) { |