[JAVA] 3. 연산자 Ⅳ. 논리

최재원's avatar
Feb 04, 2025
[JAVA] 3. 연산자 Ⅳ. 논리
notion image
public class Logical2 { public static void main(String[] args) { // &&(and), ||(or), !(not) boolean a = true; boolean b = false; System.out.println(a && b); // on System.out.println(a || b); // off System.out.println(a && !b); // on }
notion image
Share article

jjack1