title: How do i make a switch statement more efficient?
body: <p>I'm in the scenario where i need to put a lot of cases for increments of integers. I was wondering how can i make this more efficient and easier to read?
  Here's the code:</p>
  
  <pre><code>public static void volumeControl() {
      int selection;
      System.out.println("Volume. 1-10");
      selection = input.nextInt();
      switch (selection) {
          case 1: volume = -10;
              break;
          case 2: volume = -8;
              break;
          case 3: volume = -6;
              break;
          case 4: volume = -4;
              break;
          case 5: volume = -2;
              break;
          case 6: volume = 0;
              break;
          case 7: volume = 2;
              break;
          case 8: volume = 4;
              break;
          case 9: volume = 5;
              break;
          case 10: volume = 6;
              break;
      }
  </code></pre>
  
  <p>I can't add them because the variable "volume" is a float!</p>