Logo 
Search:

Java Articles

Submit Article
Home » Articles » Java » Homework HelpRSS Feeds

Program to declare and initialize Boolean variables and print them on the Standard Output Device

Posted By: Neal Rodriguez     Category: Java     Views: 5882

A Java Program to declare and initialize Boolean variables and print them on the Standard Output Device.

Code for Program to declare and initialize Boolean variables and print them on the Standard Output Device in Java

publicclass JAVA_006
 {

    publicstaticvoid main(String[] args)
    {
       boolean value_1=true;
       boolean value_2=false;

       System.out.println("Value_1 = " + value_1);
       System.out.println("Value_2 = " + value_2);
    }
 }
  
Share: 



Neal Rodriguez
Neal Rodriguez author of Program to declare and initialize Boolean variables and print them on the Standard Output Device is from Columbus, United States.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!