title: Java on JCreator (creating a LEAP YEAR program using while loop)
body: <pre><code>public class LeapYear_2 {
  
      public static void main(String[] args) {
  
      int year = 1900;                
          while (year &lt;= 2100 &amp;&amp; (year % 4 == 0)){
  
              System.out.println(year + " Is a Leap Year");
              year++;
  
              System.out.println(year + " Is not a leap year");
              year++;
          }   
  
      }
  }
  </code></pre>
  
  <p>I just want to know if whats wrong with my Codes? I want to create a program that year 1900 to 2100 will show the leap year and which is NOT.</p>
  
  <p>I just dont know how to use while with many conditions... it seems that I have to have many conditions in while loop in order for this program to work as i want to.</p>