A set of exercises which allow Java beginners to get in touch with the language and some of its properties and see some interesting things at the same time.
The single exercises are partitioned into packages of the naming schema exercise_n
.
The simplest of all simple programs should just show how to run Java programs.
- Printing text to the console.
- Running a java program.
A playful introduction to control structures.
- Method calls
- Control structures
Demonstrates some properties of classes.
- Creating new object instance
- Creating methods
- Return value
- String concatenation
Shows some more properties of types.
- Branches
- Arguments
A graphical window with a single sprite in it. Can we move it?
- Declaring/assigning variables
- Control structures: Branch
- Some easy mathematics
First steps with inheritance. And lists.
- Iterate over a list
- Use method of super class.
We calculate the word length frequency table of the 1000 most common english words.
- Map manipulation
- Basic logic
Obtain JSON data from a internet weather source and create command line program with it.
- Create executable jar file and execute it on the command line.
A small game where we must avoid the evil troopers.
- Objects, Inheritance, Overriding
- Some creative thinking
A simple HTTP server which just returns some text. Can it be taught to give meaningful answers?
- Network code
- Libraries