Control Flow Statements 컨트롤 흐름 명령문
컨트롤 흐름 명령문 Control Flow Statements 소스 파일 내부의 명령문은 일반적으로 나타난 순서대로 위에서 아래로 실행됩니다. 하지만 제어 흐름 명령문(Control flow statements)은, 특정 블록의 코드를 조건부로 실행할 수 있게 하면서, 의사결정 채택, 루핑 및 분기에 의하여 실행의 흐름을 종료시킵니다. 이 섹션에서는 자바 프로그래밍 언어가 지원하는, 의사-결정 명령문(if-then, if-then-else, switch), 루프 명령문(for, while, do-while), 그리고 분기 명령문 (break,continue, return)을 설명합니다. The statements inside your source files are generally executed fro..
2016. 1. 5.
Expressions, Statements, and Blocks
Expressions, Statements, and Blocks 변수와 연산자를 이해했으니, expressions, statements, blocks에 대해 배워야 합니다. expressions를 구축할 때 연산자가 사용되는데, 연산자는 값을 계산합니다; expressions은 statements의 핵심 구성요소입니다; statements는 블록으로 그룹화될 수 있습니다. Now that you understand variables and operators, it's time to learn about expressions, statements, and blocks. Operators may be used in building expressions, which compute values; expressi..
2016. 1. 5.