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