Wun Code
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
  1. 1Your first programJavaThe main method, println and a static method
  2. 2Types and castingJavaInteger division, long and Math.round
  3. 3ConditionalsJavaBranching with if, switch and the ternary operator
  4. 4LoopsJavaRepeating with for, while and for-each
  5. 5Methods and overloadingJavaReturn values and methods that share a name
  6. 6ArraysJavaThe length field, Arrays.sort and Arrays.toString
  7. 7StringsJavaComparing with equals instead of ==, and the StringBuilder class
  8. 8Classes and encapsulationJavaPrivate fields, the constructor and toString
  9. 9Inheritance and polymorphismJavaThe abstract and super keywords and the @Override annotation
  10. 10Lists and mapsJavaCounting and grouping with ArrayList and HashMap