(int a, int b)
| 638 | |
| 639 | |
| 640 | public void swap(int a, int b) { |
| 641 | String tkey = keys[a]; |
| 642 | float tvalue = values[a]; |
| 643 | keys[a] = keys[b]; |
| 644 | values[a] = values[b]; |
| 645 | keys[b] = tkey; |
| 646 | values[b] = tvalue; |
| 647 | |
| 648 | // indices.put(keys[a], Integer.valueOf(a)); |
| 649 | // indices.put(keys[b], Integer.valueOf(b)); |
| 650 | } |
| 651 | |
| 652 | |
| 653 | /** |