[JAVA] What is a boolean type?

It was the first word I saw while studying, so I scribbled it in my own way while referring to it. I will continue to do it.

What is boolean type?

A boolean type is data that is determined to contain either true or false data. You don't need anything other than true false.

(Tentative)


public static boolean isHealthy(double bmi) {
    return bmi >= 18.5 && bmi < 25.0;
}
if (isHealthy(bmi)) {
    system.out.println("I'm healthy");
} else {
    System.out.println("Not healthy");
}

Recommended Posts

What is a boolean type?
What is a column Boolean type?
What is a reference type variable?
What is a constructor?
What is a stream
What is a Servlet?
What is a wrapper class?
What is a Ruby module?
What is a floating point?
What is a meaningful comment?
What is a jar file?
What is a Java collection?
What is a lambda expression?
What is a fa⁉ enum?
What is a snippet in programming?
What is a lambda expression (Java)
[Swift] What is "inheriting a class"?
What is a Ruby 2D array?
What is Cubby
What is Docker?
What is a class in Java language (3 /?)
What is null? ]
What is a terminal? -Absolute path & relative path-
What is a Spring Boot .original file?
What is java
What is the right migration data type? ??
What is Keycloak
What is maven?
What is Jackson?
[For programming beginners] What is a method?
What is Docker
What is self
What is Jenkins
What is ArgumentMatcher?
What is IM-Juggling?
What is a class in Java language (1 /?)
What is params
What is SLF4J?
What is a class in Java language (2 /?)
What is Facade? ??
What is Java <>?
What is Gradle?
What is POJO
What is Java
What is centOS
What is RubyGem?
[Rails] What is a dot (.) Or a colon (:)?
What is programming?
What is before_action?
What is Docker
What is a request scope? Image commentary
What is Byte?
What is Tomcat
Introduction to Recursive Functions: What is a Recursive Function?
What is Maven Assembly?
What is `docker-compose up`?
What is vue cli
What is an interface?
What is Ruby's self?
What is hard coding?
What is Ruby's attr_accessor?