how can I correct these things
import java.awt. Color; import edu.princeton.cs.introcs.StdDraw: public class mini02_Design i public static void setPenColor(Color color) ( StdDraw. setPencolor (color) ; 1 public static void circle (double x, double y, double radius) ? StaDraw, circle (x,y, radius ): 1 public static void filledSquare (double x, double y, double halftength) 1 StaDraw. filledSquare (x,y, halflength): ) public static void main (String[] args) [ int n=20;// Default value if (args.length >0 ) \{ n= Integer.parseInt (args[0]); 3 if (n<2?1,n>50){ System. out.println ("Value for n is incorrect. Value of n must be between return; \} int DesignSize =400/n;// Adjusted size based on n int sheetSize =n? DesignSize; StdDraw. setCanvasSize (sheetSize, sheetSize) ; StdDraw. setXscale (0, sheetSize); StdDraw. setyscale (0, sheetSize) ; for (int i=0;i<n; i+t) \& for (int j=0;j<n;j++; \{ double centerX =(i+0.5)? DesignSize; double centerY =(j+0.5)? DesignSize; if ((i+j)&2=0)1 setPenColor (Color.RED); filledSquare(centerX, centerY, DesignSize / 2): \} else 1 setPenColor (Color. BLACK) ; circle(centerX, centerY, Designsize / 2): 1 ) J \} \}