Java Games: Flashcards, matching, concentration, and word search.

AP Computer Science Final Review

AB
And operatorLogical operator that ANDs two boolean values. Written as &&
booleanA Java type that can either be true or false
Break statementBreaks out of the current loop, without executing any more code in the loop
charA Java type that represents a single character (a single letter)
CommentA message in your code that explains what is going on
Comparison operatorUsed to make comparisons between values
ConditionCode that you put inside an if statement or while-loop
DecompositionBreaking your program into smaller parts
doubleA Java type that represents a real number with decimal values
For LoopLets us repeat code a fixed number of times
If/Else statementControl structure that lets us do either one section of code or another depending on the test
If statementLets you ask a question to the program and only run code if the answer is true
intA Java type that represents an integer (a whole number)
JavadocA specific standard for commenting Java programs, a format to follow when commenting in order to clearly explain your code
Logical operatorUsed to make logical associations between boolean values
Loop-and-a-halfA loop that has a break statement in the loop body
Not operatorLogical operator that negates a single boolean value. Written as !
Or operatorLogical operator that ORs two boolean values. Written as ||
readBooleanJava method that lets us read in a true or false value input from the user
readDoubleJava method that lets us read in a decimal value input from the user
readIntJava method that lets us read in an integer input from the user
readLineJava method that lets us read in a line of input from the user as a String
Return statementExits a method and a returns a value
StringA Java type that represents a string of characters (text)
System.out.printlnJava method that lets us print out a line of output to the user
VariableA symbol or container that holds a value
While LoopLets us repeat code as long as something is true



This activity was created by a Quia Web subscriber.
Learn more about Quia
Create your own activities