LESSON 4 Flashcards
(34 cards)
which are widely used in Java
programming, are a sequence of characters. In the Java programming language, __are objects. This section describes using the__ class to create and manipulate __. It also compares the__ and __Builder classes.
Strings
the process of continually incrementing a variable to keep track of the number of occurrences of some event.
Counting
Reducing the value of a variable by 1
Decrementing
a loop that executes a specific number of times; also called a counted loop.
Definite loop
alters the value of the operand on the left by dividing the operand on the right into it.
Divide and assign operator (/=)
executes a loop body at least one time; it checks the loop control variable at the bottom of the loop after one repetition has occurred.
do…while loop
one that performs no actions other than looping.
Do-nothing loop
a block with no statements in it.
Empty body
an indefinite loop.
Event-controlled loop
a special loop that can be used when a definite number of loop iterations is required.
for loop
Adding 1 to the value of a variable.
Incrementing
One in which the final number of loops is unknown.
Indefinite loop
A loop that never ends.
Infinite loop
Contained entirely within another loop.
Inner loop
one loop execution.
Iteration
The block of statements that executes when the Boolean expression that controls the loop is true.
Loop body
a variablewhose value determines whether loop execution continues.
Loop control variable
The technique of combining two loops into one.
Loop fusion
A structure that allows repeated
execution of a block of statements.
Loop
Alters the value of the operand on the left by multiplying the operand on the right by it.
Multiply and assign operator (*=)
Contains another loop.
Outer loop
Evaluates a variable and then adds 1 to it.
Postfix ++
another name for Postfix ++.
Postfix increment operator
one in which the loop control variable is tested after the loop body executes.
Posttest loop