×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: Java
Posted by: Abdulrasheed Abdulqudus
Added: Aug 23, 2021 10:41 AM
Views: 3440
Tags: no tags
  1. /*
  2.  * To change this license header, choose License Headers in Project Properties.
  3.  * To change this template file, choose Tools | Templates
  4.  * and open the template in the editor.
  5.  */
  6. package conditionalstatement;
  7.  
  8. /**
  9.  *
  10.  * @author HP
  11.  */
  12. public class ConditionalStatement {
  13.  
  14.     /**
  15.      * @param args the command line arguments
  16.      */
  17.     public static void main(String[] args) {
  18.         int x=20;
  19.         int y=18;
  20.         if(x>y){
  21.         System.out.println("x is greater than y");
  22.         }
  23.         // TODO code application logic here
  24.     }
  25.    
  26. }
  27.