BlueJ
project
new project
Name Foo
new class
name Collatz (großer Anfangsbuchstabe!)
right-click: open editor
class Collatz {
static void compute (int x) { .. } // Text siehe Vorlesung (copy-paste)
public static void main (String [] argv) {
compute (27);
}
}
editor: compile
compute aufrufen
project: right-click compute
Argument eingeben
Hinweis: falls Programm ,,hängt`` dann:
project
view
show debugger
terminate