inblog logo
|
An's Blog

    [JAVA] 9. 관계연산자

    윤설안's avatar
    윤설안
    Feb 04, 2025
    [JAVA] 9. 관계연산자
    Contents
    결과
    💡
    결과 값이 true 또는 false로 나오는 연산자.
    public class CompOperator { public static void main(String[] args) { System.out.println((3 == 4) + " "); // false System.out.println((3 != 4) + " "); // true System.out.println((3 > 4) + " "); // false System.out.println((4 > 3) + " "); // true System.out.println((3 == 3 && 4 == 7) + " "); // false System.out.println((3 == 3 || 4 == 7) + " "); // ture } }

    결과

    notion image
    Share article

    An's Blog

    RSS·Powered by Inblog