Description
I've had a few requests to coach Java at codebar so I thought a basic tutorial would be useful. However, Java is a complex beast and it helps a lot if students have an IDE like IntelliJ IDEA installed before they start.
Installing an IDE could be lesson 0.
For lesson 1, one of the complexities of Java is that you need an understanding of a fair number of concepts even for a hello world example. To produce the simplest example I can come up with:
public class Hello {
public static void main(String[] args) {
System.out.println("Hello, world!");
}
}
you need to explain the concepts, of class
, main
method, types (String[]
and void
) and modifiers (public
and static
). This can quickly get confusing so any suggestion as to how to do this properly would be good.
Then there's the challenge of getting the IDE to run the code properly, which requires a run configuration.