code: public void setAmbient(float ambient[]){
          for(int i = 0; i<ambient.length;i++)
              this.ambient[i]=ambient[i];
          Am = true;
      }
docs: Sets the ambient reflectance for shapes drawn to the screen.
  
  @param ambient
  The ambient reflectance of this Material.