Java type that represents a whole number.
int
Java type that is a true or false value.
Boolean
Allows users to input whole number values.
variable.nextInt()
Increase the value of a variable by one.
Increment (variable++;)
Displays output on the computer monitor and moves the cursor to the next line.
System.out.println
Java type that represents a real number with decimal values.
double
A Java type that represents multiple characters (text).
String
Allows users to input numeric values with decimals.
variable.nextDouble()
Decrease the value of a variable by one.
Decrement (variable--;)
Allows users to input String values.
variable.nextLine()
Java type that represents a single letter.
char
Defining a variable for the first time.
Declare a variable
Operator that divides two numbers and returns the remainder.
Modulus operator (%)
The order in which mathematical expressions should be evaluated.
Order of Operations
A class within java.util. It contains code specifically designed to help with user input.
Scanner class
The basic, simple data types that are inherent to Java (such as int, double, char, and boolean).
Primitive Type
Giving a variable an initial value, or a starting value.
Initialize a variable
The fixed value being assigned to a variable. Often primitive data types.
Literal
Type of division in which the decimal values are truncated, or chopped off.
Integer Division
Class header. The name of MyProgram must match the name of the file.
public class MyProgram
Data type that stores the address of a value (such as String).
Reference Type
Keyword that prevents variables from changing value.
final
Thrown to warn programmers about mathematical errors in their code.
ArithmeticException
Allow programmers to shortcut variable assignments that include the variable being assigned a new value. (example: x = x + y; shortcut: x += y;
Compound Assignment Operators
Main method header. Code to be run must be placed within the main method.
public static void main(String args[])