Boolean데이터타입

[Java] Boolean 데이터 타입
Boolean 데이터 타입이란? 참(true)과 거짓(false)을 표현하는 데이터 타입 true와 false 키워드를 직접 입력할 수도 있고, 메소드의 리턴값이나 비교 연산으로 도출할 수도 있다. public class BooleanApp { public static void main(String[] args) { // Data type 데이터 타입 System.out.println("One"); // String 문자열 System.out.println(1); // Integer 정수 // Boolean Data type System.out.println(true); System.out.println(false); } } Boolean 데이터 타입의 활용 contains() 메소드 String 객체의..