LESSON 3 Flashcards
Makes it easy to pop up a standard dialog box that prompts users for a value or informs them of something
JOPTIONPANE
What are the JAVA OPERATOR TYPES?
- Arithmetic operators
- Relational operators
- Logical operators
- Conditional operators
the same subexpressions and at the same operator precedence level are evaluated from right to left
Unary operators
the same subexpressions and at the same operator precedence level are evaluated from left to right
Binary operators
- Statements that allows us to select and execute specific blocks of code while skipping other sections
If statement
If-else statement
If-else-if statement
Switch statement
DECISION CONTROL STRUCTURES
Specifies that a statement/block of code will be executed if and only if a certain boolean statement is true
IF STATEMENT
Used when we want to execute a certain statement if a condition is true, and a different statement if the condition is false
IF-ELSE STATEMENT
- The statement in the else-clause of an if-else block can be another if-else structure
- This cascading of structures allows us to make more complex selections
IF-ELSE-IF STATEMENT
An integer or character expression
switch_expression
Unique integer or character constants
case_selector1, case_selector2
- If none of the cases are satisfied, this block is executed-
- An optional part
DEFAULT BLOCK
To prevent the program from executing statements in the subsequent cases,
BREAK STATEMENT