code: public void tableSwitch(final int[] keys,
              final TableSwitchGenerator generator) {
          float density;
          if (keys.length == 0) {
              density = 0;
          } else {
              density = (float) keys.length
                      / (keys[keys.length - 1] - keys[0] + 1);
          }
          tableSwitch(keys, generator, density >= 0.5f);
      }
docs: Generates the instructions for a switch statement.
  
  @param keys
  the switch case keys.
  @param generator
  a generator to generate the code for the switch cases.