getter

    [Java] 조건문과 반복문

    4. 조건문과 반복문 4.1 if 조건문 4.1.1 조건식이 true일 경우에만 실행됨 /** * Syntax: The if Statement * * if: Java keyword * condition: boolean expression * statement: executed if the condition is true and skipped otherwise */ if (condition) { statement } 4.1.2 if ~ else(양자택일형) 4.1.3 다양한 조건의 if문 4.1.4 중첩 if(nested if) if문 안에 또 다른 if문을 중첩해서 넣을 수 있다. if (조건식1) { // 조건식1의 연산결과가 true일 때 수행될 문장들을 적는다. if (조건식2) { // 조건식1과..