Boolean Example in Java

This is simple java program for beginners to understand Boolean values. The Boolean value has two states true or false 1 or 0. Mostly Boolean value is used to check the condition and to avoid number of Key stoke in Code.

Source Code   

import java.util.Scanner;
public class Bool_Fun  
{
 
public static void main(String[] args)
 {
  System.out.println("\t \t \t LEP Tutorials \n ");
  Scanner input = new Scanner (System.in);
  boolean LEP = true;
  if (LEP ==true)
  {
  System.out.println("LEP Java Tutorials \n ");
 }
  else 
  {
   System.out.println("LEP C++ Tutorials \n ");
  }
 }
}

Output of the Program

Boolean Example in Java
Boolean Example in Java
Share on Google Plus

About Asad

Asad Niazi is Software Engineer , Programmer, Web Developer and a young mentor of BloggersTown and PProgramming. Asad Love to writes about Technology, Programming, Blogging and make money online.

38 comments:

  1. I agree with your thoughts!!! As the demand of java programming application keeps on increasing, there is massive demand for java professionals in software development industries. Thus, taking training will assist students to be skilled java developers in leading MNCs.Best Java Training in Chennai | JAVA Training Institutes in Chennai

    ReplyDelete
  2. Really you have done great job,There are may person searching about that now they will find enough resources by your post
    Click here:
    Angularjs training in chennai

    ReplyDelete
  3. Its really an Excellent post. I just stumbled upon your blog and wanted to say that I have really enjoyed reading your blog. Thanks for sharing....
    Click here:
    Microsoft Azure training in online

    ReplyDelete
  4. This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them.
    Data Science Training in Chennai
    Data science training in bangalore
    Data science online training
    Data science training in pune
    Data Science training in kalyan nagar
    Data Science training in OMR
    selenium training in chennai

    ReplyDelete
  5. Appreciation for really being thoughtful and also for deciding on certain marvelous guides most people really want to be aware of.
    best safety course in chennai

    ReplyDelete
  6. feeling so good to read your information's in the blog.
    thanks for sharing your ideas with us and add more info.
    AWS Training in Ashok Nagar
    AWS Training in Nolambur
    AWS Training
    AWS Course in Bangalore

    ReplyDelete
  7. Whoa! I’m enjoying the template/theme of this website. It’s simple, yet effective. A lot of times it’s very hard to get that “perfect balance” between superb usability and visual appeal. I must say you’ve done a very good job with this.
    iosh safety course in chennai

    ReplyDelete
  8. You are so cool! I don't believe I've read a single thing like that before. So wonderful to discover someone with genuine thoughts on this topic. Really.. thank you for starting this up. This web site is something Tech that's needed on the internet, someone with a bit of originality!

    ReplyDelete
  9. I am really enjoying reading your well written articles. It looks like you spend a lot of effort and time on your blog. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work.

    data science course

    ReplyDelete
  10. great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one. thanks
    Ai & Artificial Intelligence Course in Chennai
    PHP Training in Chennai
    Ethical Hacking Course in Chennai Blue Prism Training in Chennai
    UiPath Training in Chennai

    ReplyDelete
  11. This is my first time i visit here. I found so many entertaining stuff in your blog, especially its discussion. From the tons of comments on your articles, I guess I am not the only one having all the leisure here! Keep up the good work. I have been meaning to write something like this on my website and you have given me an idea.

    Data Science Course

    ReplyDelete
  12. Seriously i'm like your blogs.Just i want to share for the new post.Really i'm like this concetps viva bookmarked into my laptop browser page.keep sharing!!!

    Android Training in Chennai

    Android Online Training in Chennai

    Android Training in Bangalore

    Android Training in Hyderabad

    Android Training in Coimbatore

    Android Training

    Android Online Training

    ReplyDelete
  13. This is the exact information I am been searching for, Thanks for sharing the required infos with the clear update and required points. To appreciate this I like to share some useful information regarding Microsoft Azure which is latest and newest,Data Science Training In Chennai

    Data Science Online Training In Chennai

    Data Science Training In Bangalore

    Data Science Training In Hyderabad

    Data Science Training In Coimbatore

    Data Science Training

    Data Science Online Training

    ReplyDelete
  14. wonderful article. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. thanks lot!!

    android training in chennai

    android online training in chennai

    android training in bangalore

    android training in hyderabad

    android Training in coimbatore

    android training

    android online training

    ReplyDelete
  15. Informative post indeed, I’ve being in and out reading posts regularly and I see alot of engaging people sharing things and majority of the shared information is very valuable and so, here’s my fine read.thanks lot!!

    android training in chennai

    android online training in chennai

    android training in bangalore

    android training in hyderabad

    android Training in coimbatore

    android training

    android online training

    ReplyDelete
  16. Thank you for the informative post. It was thoroughly helpful to me. Keep posting more such articles and enlighten us.


    AI Training in Hyderabad

    ReplyDelete
  17. The strategy you have posted on this technology helped me to get into the next level and had lot of information in it.data science course in Hyderabad

    ReplyDelete
  18. Very nice post here and thanks for it .I always like and such a super contents of these post.Excellent and very cool idea and great content of different kinds of the valuable information's.
    sap training in chennai

    sap training in omr

    azure training in chennai

    azure training in omr

    cyber security course in chennai

    cyber security course in omr

    ethical hacking course in chennai

    ethical hacking course in omr


    ReplyDelete
  19. I am sure that this is going to help a lot of individuals. Keep up the good work. It is highly convincing and I enjoyed going through the entire blog.
    data scientist training in hyderabad

    ReplyDelete
  20. In the wake of perusing your article, I was astounded. I realize that you clarify it well overall. What's more, I trust that different perusers will likewise encounter how I feel in the wake of perusing your article.
    data scientist training and placement

    ReplyDelete
  21. AI Patasala is the most rumoured Python Training in Hyderabad developed to help you advance your career with a massive increase in the latest technology.
    Python Course

    ReplyDelete
  22. Nice blog and informative content to users. Thanks for sharing this information with us.
    Online Data Science Course in Hyderabad

    ReplyDelete
  23. Thank you so much for doing the impressive job here, everyone will surely like your post.
    full stack web development course malaysia

    ReplyDelete