Answer:

No.

Complete Program

Here is the complete program, suitable for copying and pasting to your own source file. The file should be called SnowFlake.java.

// SnowFlake.java
//
import java.applet.Applet ;
import java.awt.* ;
import java.lang.Math ;

public class SnowFlake extends Applet
{
  Graphics graph;
   
  private void drawStar( int x, int y, int size )
  {
    int endX ;
    int endY ;
    
    if ( size <= 2 ) return;
    
    // Six lines radiating from (x,y)
    for ( int i = 0; i<6; i++ )
    {
      endX = x + (int)(size*Math.cos( (2*Math.PI/6)*i ));
      endY = y - (int)(size*Math.sin( (2*Math.PI/6)*i ));
      graph.drawLine( x, y, endX, endY );
      drawStar( endX, endY, size/3 );
    }
  }
         
  public void paint ( Graphics gr )
  { 
    graph      = gr;
    int width  = getSize().width;
    int height = getSize().height;
    int min;
    
    setBackground( Color.white );
    gr.setColor  ( Color.blue  );
    
    if ( height < width )
      min = height;
    else
      min = width;
      
    drawStar( width/2, height/2, min/4 );
  }
}

QUESTION 14:

To run this program, what else do you need?