The Destination for Beginners, Students, and Teachers of Java
Let's learn Java...
Why Java?
Teacher's Corner
Learning Java Has Never Been Easier
Videos to get you started
Variables - Say My Name: Local Variable type `var`
See examples of when the compiler can infer the variable type allowing the use of var instead of the type.
Local Variable Type (var) and the AP CSA FRQs
See examples of how var can be used correctly when writing solutions to the AP CSA Free Response Questions.
Ternary Conditional Operator: Beyond if Statements
Discover how to use the ternary conditional operator to determine a value which can be more readable than using an if..else statement.
Ternary Conditional Operator and the AP CSA FRQs
See examples of how the ternary conditional operator can be used correctly when writing solutions to the AP CSA Free Response Questions.
Switch Statements: Nested if..else Statement Alternatives
Discover how to use switch statements instead of lengthy nested if..else statements as a way to make your code more readable and streamlined.
Switch Expressions - Determining a Value
See how switch expressions are different from switch statements and how to use them.
Switch Expressions and the AP CSA FRQs
See examples of how switch expressions can be used correctly when writing solutions to the AP CSA Free Response Questions.
Pattern Matching in Java
Learn all the different ways Java pattern matching can be used to write code that is more readable and streamlined.
Records
See examples of the difference between a class and a record and how to write records.
Records and the AP CSA FRQs
See examples of how records can be used correctly when writing solutions to the AP CSA Free Response Questions.