This course provides a foundation for learning how to program with the most recent Long-Term Support (LTS) release, Java 17.
Overview
Syllabus
Introduction
- Learn the essentials of Java 17
- Programming and algorithms
- Install IntelliJ Community Edition
- Install the Java Development Kit (JDK)
- Packages
- Classes
- Main method
- Reserved words
- Creating variables
- Primitive data types
- Local variable type inference
- Naming variables
- Modifying variables
- Arithmetic operators
- Challenge: Fill in the blanks
- Solution: Fill in the blanks
- If statements
- If-else statements
- If-else-if statements
- Switch statements
- Switch expressions
- Relational operators
- Logical operators
- Short circuit logic
- Challenge: Change for a dollar game
- Solution: Change for a dollar game
- While loop
- Do while loop
- For loop
- Nested loops
- Break statement
- Challenge: Roll the die game
- Solution: Roll the die game
- Creating methods
- Calling methods
- Variable scope
- Passing data to methods
- Returning data from methods
- Overloading methods
- Defining classes for objects
- Constructors
- Instantiating objects
- Objects as method parameters
- Objects as method return types
- Wrapper classes
- Records
- Arrays
- Variable arguments
- Strings
- Text blocks
- Challenge: Password validator
- Solution: Password validator
- Next steps
Taught by
Angie Jones