Wednesday, October 14, 2015

How To Use Boolean Variable in Java Programming Language + video tutorial

How To Use Boolean Variable in Java Programming Language

The Following script is the simplest way to declaring and using Boolean variable in Java:

class USeBoolean{
 public static void main(String args[]){
  boolean x, y;
  x = true;
  y = false;
  System.out.println("your x boolean variable value : "+ x);
  System.out.println("your y boolean variable value : "+ y);
 }
}

ShadowOfBdg© - All rights reserved. 

No comments:

Post a Comment