Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

Example of an IF..ELSE Statement

public class Test {

   public static void main(String args[]) {
      int x = 30;

      if( x < 20 ) {
         System.out.print("This is if statement");
      }else {
         System.out.print("This is else statement");
      }
   }
}
Source by sites.google.com #
 
PREVIOUS NEXT
Tagged: #Example #Statement
ADD COMMENT
Topic
Name
3+1 =