codebar / tutorials

🗒 codebar's tutorials
http://tutorials.codebar.io/
257 stars 241 forks source link

Java tutorial #422

Open brunogirin opened 5 years ago

brunogirin commented 5 years ago

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.

naz-eze commented 5 years ago

I'd be interested in helping out with coming up with a Java tutorial. We can create a Java tutorial branch and get a few lessons up.