title: Setters not doing what they are supposed to do in java
body: <p>I have a TV class that has only 99 channel and 20 as the highest volume but my volume and channel setters are not working properly also when i add one to the volume instead of add 1
  to 10 which is my default volume it only add one to the given volume digit 
  my tv class</p>
  
  <pre><code>public class TV
  {
      private String flag;
      private int ch;
      private int vol = 10;
  
      public TV(String onOffSwitch, int channel, int volume)
      {
          flag = onOffSwitch;
          ch = channel;
          vol = volume;
      }
  
      public void setFlag(String onOffSwitch)
      {
          onOffSwitch = "Off";
      }// End of setFlag
  
      public String getFlag()
      {
          return flag;
      }// End of getFlag
  
      public void setCh (int newChannel)
      {
          if (newChannel &gt;= 99)
          {
              ch = 99;
          }else
          {
              ch = newChannel;
          }
  
          if(newChannel &lt; 0)
          {
              ch = 0;
          }
      }//end of setCh
  
      public int getCh ()
      {
          return ch;
      }// End of getCh
  
      public void setVol(int newVolume)
      {
          if(newVolume &gt;= 20)
          {
              vol = 20;
          }
  
          if(newVolume &lt; 0)
          {
              vol=0;
          }
      }// End of SetVolume
  
      public void incrementVolume()
      {
          vol++;
      }
  
      public int getVol()
      {
          return vol;
      }// ENd of getVolume
  
      public String toString()
      {
          return String.format("%s :%s\n%s:%d\n%s :%d","TV is switched", flag,"TV channel",ch,"TV volume",vol);
      }
  
  }// End of TV class
  </code></pre>
  
  <p>my test Drive class</p>
  
  <pre><code>import java.util.Scanner;
  
  public class TvTest
  {
      public static void main (String[] args)
      {
          String tvStatus;
          int chan;
          int volu;
  
          Scanner input = new Scanner(System.in);
          TV tv2 = new TV("off",105,10);
  
          System.out.print(tv2);
          System.out.println();
  
          System.out.print("Turn TV On or Off ?");
          tvStatus = input.nextLine();
  
          System.out.print("Channel : ");
          chan = input.nextInt();
  
          System.out.print("Volume : ");
          volu = input.nextInt();
  
          TV tv1 = new TV(tvStatus,chan,volu);
          tv1.incrementVolume();
  
          System.out.println(tv1);
      }
  }
  </code></pre>
  
  <p>and the test output</p>
  
  <pre><code>TV is switched :off
  TV channel:105
  TV volume :10
  Turn TV On or Off ?on
  Channel : 105
  Volume : 1
  TV is switched :on
  TV channel:105
  TV volume :2
  </code></pre>
  
  <p>why isnt my setters working ???</p>