Takeaways
- Java classes are a blueprint for some object we want to represent. The new keyword is used to create an instance of a Java class.
- Java classes have instance fields/attributes and methods
- Running time is measured using Big-O notation. Big-O measures the amount of instructions an algorithms takes as the input grows towards infinity (Asymptotic) under the worst case scenario.
- Arrays are a data structure that is fixed in size, and can only fit one data type. Element are located at a specific index
- To add something to a filled array, we must make a new array, copy everything over, and update the reference value
Code
This code represent some online shopping website where a user can add items to their cart. You can download the zip, extract it, and then import project with your IDE.