String is a Java type that represents a string of characters (text)
A sequence of characters enclosed in double quotations “ “.
Includes the class and main method arguments. Must include both in order to run successfully.
Main method. Code to be run must be placed within the main method.
Class. The name of MyProgram must match the name of the file.
Displays output on the computer monitor.
Displays output on the computer monitor and moves cursor to next line.
`int` is a Java type that represents an integer (a whole number)
`char` is a Java type that represents a single character (a single letter)
`double` is a Java type that represents a real number with decimal values
Declaring a variable is defining it for the first time.
Initializing a variable is giving it an initial value, or a starting value.
Primitive types are the basic, simple data types that are inherent to Java (int, double, char, and boolean)
A boolean is a true or false value.
Reference variables store the address of the value
Prevents variables from changing value.
The modulus operator (written as % in most programming languages) divides two numbers and returns the remainder.
When two integers are divided, the decimal values are truncated, or chopped off.
The order in which mathematical expressions should be evaluated. Starts with Parentheses, Exponents, Multiplications and Division, Addition and Subtraction.
The fixed value being assigned to a variable. Often primitive data types.
Exception that is thrown to warn programmers about arithmetic errors in their code.
Increase the value of a variable by one. variable++;
Decrease the value of a variable by one. variable--;
Allows programmers to shortcut variable assignments that include the variable being assigned a new value: x = x + y; shortcut: x += y;
Turning something of one type into another type!
When Java automatically casts the value correctly without the programmer needing to do so
Rounds the value of a double to the nearest whole number.
The highest value Java is able to access. 2147483647
When a calculation relies on a number outside the acceptable number range, Java will wrap back to the MIN or MAX value depending on the value.
Allows users to input String values.
Allows users to input int values.
Allows users to input double values.
Packages are used to group code into a folder for easy use.
A class within java.util. It contains code specifically designed to help with user input.