title: Shape won't scale
body: <p>Whenever I try to scale the shape, nothing happens and then the console stops responding to input.
  Here is the set scale command:</p>
  
  <pre><code>case 7: do
                           {
                              System.out.println("\nEnter scale factor");
                              scale=input.nextDouble();
                           }
                           while(scale&lt;0);
                           Shape.setScaleFactor(scale);
                           break;
  </code></pre>
  
  <p>Here is the scale shape command</p>
  
  <pre><code> case 4: for(i=0; i&lt;s.length; i++)
                           {
                              if(s[i]!=null)
                              {
                                s[i].scaleShape();
                              }
                           }
                           break;
  </code></pre>
  
  <p>Here is the main method variables:</p>
  
  <pre><code>int i=0;
          int m=0;
          double scale;
          boolean exit=false;
          Shape[] s = new Shape[10];
  </code></pre>
  
  <p>Here are all the relevant methods in the shape class;</p>
  
  <pre><code>private static double scaleFactor;
  public static double getScaleFactor()
      {
  
          return scaleFactor;
      }
      //Set ScaleFactor
      public static void setScaleFactor(double x)
      {
  
          scaleFactor=x;
      }
  </code></pre>
  
  <p>Here is the scaleshape method in the rectangle subclass</p>
  
  <pre><code>private double base;
      private double height;   
  @Override public void scaleShape()
      {
          base=base*getScaleFactor(); height=height*getScaleFactor();
  
      }
  
          public abstract void scaleShape();
  </code></pre>
  
  <p>Here is the set scale method in the circle class:</p>
  
  <pre><code>private final double pi = Math.PI;
      private double radius;
   @Override public void scaleShape()
      {
           radius*=getScaleFactor();
      }
  </code></pre>