The following topics explain basic principle of programming.
- Introduction
- Why learn to program
- What is programming
- How to learn programming
- What does a developer / programmer do
Material:
- Slides
- shorten these slides?
- Java is not just an isle
- Translating โ Compiling
- The IDE (an overview)
- Our first program
- Running the program
- Analyzing the code
Material:
- Variables
- Variable names
- Data types
String
int
boolean
float
- Declaration and initialization
- Print with different data types
- Primitive types
Material:
- Operators
- Assignment
- Arithmetic
- Compound assignment
- Increment / Decrement
- Relational
- Logic
Material:
- Input
Scanner
if
- Conditions
- Chaining
- Boolean expressions
- Number comparison
else
else if
switch/case
switch/case
vsif
Material:
for
while
do/while
- shortened
for
(foreach)
Material:
- Methods
- Why do we need methods
- Structure
- Example
- Scope
Material:
- Slides
- Exercises on simple methods
- Solutions for simple methods
- Exercises on reusing methods
- Solutions for reusing methods
- Using
Scanner
to read strings - Comparing
String
- Operations on single characters
Material:
- Why using
ArrayList
- Accessing / Updating of
ArrayList
ArrayList
and loops- Exercises
Material:
This is a list of questions that covers the topics taught so far.
The following topics explain the Object Oriented Programming model of Java.
This lesson provides an overview of classes, objects and references. The focus is on using existing classes.
- Classes and Objects
- Properties and Methods
- Using Classes and Objects
- References
Material:
- Slides
- Exercises with the Java Standard library
- Solutions for the exercises with the Java Standard Library
- The "School" library: teachers, students and homework
- Exercises with the "School" library
- Solutions for exercises with the "School" library
This lesson provides basic information on how to write your own classes.
- How to write your own class
- Writing the constructor
- Writing properties
- Writing methods
Material:
- Repetition of scope
- Method scope / Parameters
- Class Scope
this
keyword
Material:
This lesson is a continuation of the previous, where additional concepts are presented in more details and guidelines and examples are provided on how to write your own classes with inheritance and interfaces.
- Inheritance
- Subclasses
- Examples (bikes, motorbikes, mountain bikes)
- Overriding methods
- Interfaces
- Examples (animals, cats, dogs)
Material:
- Add further reading material