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

4.01 PI

AB
variableis a named place in computer memory that holds a value. The user (who runs the program) or the programmer (coder) can supply the value
declareusing the DIM keyword. This tells the computer the name we are going to use and its data type
variable nameis the address used when working with a variable (placing data inside, or changing the data). Like the address on your mailbox
data typetells the computer what type of value to expect in a variable.
Integer (int)used with whole numbers (+/-)
String (str)used with strings of characters/words
Double (dbl)used with larger decimal numbers
Decimal (dec)used with decimal numbers - currency
Char (chr)used for a single character
Boolean (bln)used for true or false
Hungarian notationis a convention for naming and differentiating between data objects.
numericvariable is declared, its initial value is 0 unless it is given a value at the same time.
stringvariables is declared without a value, its initial value is null.
Outputis values or strings the program displays for the user based on the execution of the program.
ToStringThis converts any value given to it to a string and formats it with the format given.



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