Kotlin Quick Start for Java Developers
- 3 hours on-demand video
- Full lifetime access
- Access on mobile and TV
- Certificate of Completion
Get your team access to 4,000+ top Udemy courses anytime, anywhere.Try Udemy for Business
- Key concepts/syntax of the Kotlin language
- Kotlin in the context of the IntelliJ IDE
- Object-oriented programming with Kotlin
- Functional programming with Kotlin
- Kotlin standard library (highlights)
- Kotlin-Java interop and migration strategies
- IntelliJ tips and tricks
- Setting up Gradle for Kotlin
- A basic knowledge of Java
- Our examples are in the form of junit test cases, so a basic understanding of what a unit test is, while not required, might be helpful.
In this course, I will guide you through a number of small examples and one modestly complex project. Through these examples, you'll learn the fundamental language features needed to create Kotlin applications.
This isn't an in-depth reference covering every detail of the language. Rather, it's a tutorial covering the most important parts of the language, the 80% that I use every day. After completing this course, you'll still have more to learn, but you'll have everything you need to start being productive with Kotlin.
The table of contents is not ordered in terms of Kotlin features. Rather, the course is organized by the business features we add to our sample project. We introduce new Kotlin concepts as the need organically arises in the context of building our project.
We'll be using the IntelliJ IDE. So you'll be learning the fundamentals of Kotlin in the context of one of the world's greatest IDEs. And that's important because Kotlin, when teamed with IntelliJ, provides the most productive programming environment I ever used. With that said, this course is still appropriate for those who just want to learn Kotlin but don't plan on using IntelliJ.
- Java Developers wanting to quickly get up to speed with Kotlin fundamentals
In this lesson we create a Kotlin project in IntelliJ, build a hello world app and cover some Kotlin basics.
- creating projects
- basic Kotlin syntax
- top-level functions
- function args
- the main function
- type inference
- array syntax
We create a simple class in Kotlin and compare it to the equivalent class in Java. Along the way we learn how to call Java from Kotlin and Kotlin from Java.
- creating and using Kotlin classes
- properties versus instance vars
- automatic properties
- read-only properties
- understanding getters and setters
- using Java classes from Kotlin
- using Kotlin classes from Java
In this lesson, we setup a new Gradle project for the Blackjack app that we will be creating throughout this workshop.
- Setting up a gradle project
- Adding libraries to the gradle classpath
- The test-first development approach
- Kotlin-specific extensions to junit
- Creating a junit test in Kotlin
- Introducing the blackjack app
- Creating the Card class
- Creating a unit test for the Card class
- Using Kotlin test assertions
- Cmd D IDE shortcut