it is correct flowchart?
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4639133/please-explain-these-java-code">Please , Explain these java code ..?</a>  </p>
</blockquote>



<p>hi 
i want draw flow chart for calendar code 
this is my code </p>

<pre><code>   import javax.swing.*;  
   import java.util.*;  
   import java.text.*;  

  public class EnglishCalendar   
  {       

     public static String[] months = {
         "January", "February", "March",      
         "April", "May", "June",         
         "July", "August", "September",          
         "October", "November", "December"

        }; 
   public static int days[] = {  
     31, 28, 31,  
     30, 31, 30,
     31, 31, 30,  
     31, 30, 31 
    };  

    private void showMonth(int m, int y) {  
    int lead_spaces = 0;  
      if (m &lt; 0 || m &gt; 11) {  
    System.out.println("It should be 1 to 12");  
        }  
     else {  
         System.out.println();  
         System.out.println("    " + months[m] + " " + y);  
         System.out.println();  
         GregorianCalendar cal = new GregorianCalendar(y, m, 0);  
         System.out.println("Su Mo Tu We Th Fr Sa ");  
         lead_spaces = cal.get(Calendar.DAY _OF_WEEK);  
         int day_of_month = days[m];  
         if (cal.isLeapYear(cal.get(Calendar.YEAR)) &amp;&amp; m == 1){ day_of_month++;}  
         for (int i = 0; i &lt; lead_spaces; i++) {  
             System.out.print("   ");  
              }  
         for (int i = 1; i &lt;= day_of_month; i++) {  
            if (i &lt; 10) System.out.print(" ");  
              System.out.print(i);  
            if ((lead_spaces  + i) % 7 == 0) {  
               System.out.println();  
                 }   
               else {
               System.out.print(" ");  
            }  } 
         System.out.println();   }  }  

  private static void doSimpleDateFormat() {  
    Calendar now = Calendar.getInstance();  
    SimpleDateFormat formatter = new SimpleDateFormat("E yyyy.MM.dd 'at' hh:mm:ss a zzz");  
    System.out.print(" \n The Current Time is : " + formatter.format(now.getTime()));  
    System.out.println();  
          }  

    public static void main(String[] args) {  
        String mo = JOptionPane.showInputDialog("Month");  // prompt user to enter the number the month 
        String ye = JOptionPane.showInputDialog("Year");  // prompt user to enter the year 
        int mon = new Integer(mo).intValue();  
        int yea = new Integer(ye).intValue();  
          EnglishCalendar k = new EnglishCalendar();  
              k.showMonth(mon - 1 , yea);  
         doSimpleDateFormat();  
}  

   }
</code></pre>

<p>and i draw this flochart </p>

<p>How can show you my flowchart </p>

<p>I am new  in stackoverflow.</p>
