Import statement allows you to utilize packages with useful data and methods that would otherwise be unavailable.
Instance Fields
An instance field is a variable that's bound to the object itself. It can be used in the object without the need of an accessor. Any method contained within the object can use it.
Instance Methods
Instance methods are methods within an object.
Constructor
Constructors are special methods that are called when an object is instantiated.
If Statement
The if statement will be executed if the boolean expression in the parenthesis is true.
If/Else Statement
In the if/else statement, the if block will be executed if the boolean expression in the parenthesis is true, otherwise the else block will be executed.
If/Else if Statement
In the if/else if statement the if block will be executed if the boolean expression in the first parenthesis is true. If it's not true it will check the next parenthesis's boolean expression and if that is true it will execute the else if block statement and it will continue until it finds a true boolean expression.
Switch Statement
A switch statement allows a variable to be tested for equality against a list of values. Each value is called a case, and the variable being switched on is checked for each case.
Comparing Strings
The .equals method needs to be used to compare different strings.
Formatting Numbers with DecimalFormat
DecimalFormat allows you to format numbers in specific ways.
While Loop
A while loop will run the block statement over and over as long as the boolean expression in the parenthesis is true.
Do/While Loop
A Do/While Loop will execute the block statement once and then repeat the block statement as long as the boolean express in the parenthesis after while is true.
For Loop
A for loop is a loop that utilizes a counter to control the amount of times the loop repeats.
Running Total
Running total is a variable that continously accumulates.
Sentinel Value
Sentinel Value is a special value that is used to terminate a loop.
Overloading Methods
Overloading methods is when a class has multiple methods with different argument lists.
Overloading Constructors
Overloading constructors is when there are multiple constructors with different argument lists.
Static Class Members
Static class is a class that can be access without instantiating an object of the class.
Aggregation
Aggregation is when an object is used as a field.
This.reference
This is a keyword to refer to a field within the object's class.
Overriding toString Method
toString is a string that is used an object needs a string representation.
Overriding the equals method
Equals method is used to compare two objects.
Arrays
An array is an object that can hold multiple variables of the same type.
Arraylist
Arraylist is a class that supports dynamic arrays that can shrink and grow as required.
Binary Search
Binary search searches a sorted array by dividing the search interval in half.
Selection Sort
Selection Sort sorts an array.
Extending Parent Class
Extending a class allows a class to inherit properties and methods of its parent class.
Polymorphism
Polymorphism is the ability for an object to take on many forms. The most common form of this is when a parent class reference is used to refer to child class objects.
Polymorphism
Interface is an abstract type that holds methods that are required when implemented into classes.
Handling Exception
Exception handling is used to respond to occurrences that will change how a program executes.
Throwing Exceptions
Throwing an exception will create an error where an error might not have been.