Java
Java Basics
Java is the language behind Android apps and large systems. Everything in it lives inside a class, and you state every variable's type explicitly.
Start the trackFree, no sign-up needed
What you'll learn
- Your first programThe main method, println and a static method
- Types and castingInteger division, long and Math.round
- ConditionalsBranching with if, switch and the ternary operator
- LoopsRepeating with for, while and for-each
- Methods and overloadingReturn values and methods that share a name
- ArraysThe length field, Arrays.sort and Arrays.toString
- StringsComparing with equals instead of ==, and the StringBuilder class
- Classes and encapsulationPrivate fields, the constructor and toString
- Inheritance and polymorphismThe abstract and super keywords and the @Override annotation
- Lists and mapsCounting and grouping with ArrayList and HashMap
Track contents
10 lessons, 2 hours in total- 1Your first programJavaThe main method, println and a static method10 min
- 2Types and castingJavaInteger division, long and Math.round12 min
- 3ConditionalsJavaBranching with if, switch and the ternary operator12 min
- 4LoopsJavaRepeating with for, while and for-each14 min
- 5Methods and overloadingJavaReturn values and methods that share a name12 min
- 6ArraysJavaThe length field, Arrays.sort and Arrays.toString13 min
- 7StringsJavaComparing with equals instead of ==, and the StringBuilder class13 min
- 8Classes and encapsulationJavaPrivate fields, the constructor and toString14 min
- 9Inheritance and polymorphismJavaThe abstract and super keywords and the @Override annotation15 min
- 10Lists and mapsJavaCounting and grouping with ArrayList and HashMap16 min