- Learn Kotlin Programming(Second Edition)
- Stephen Samuel Stefan Bocutiu
- 238字
- 2021-06-24 14:13:22
Getting Started with Kotlin
It is time to write code. In this chapter, we will go over and write the typical entry code example for every language—the famous Hello World!. In order to do this, we will need to set up the initial environment required to develop software with Kotlin. We will provide a few examples using the compiler from the command line, and then we will look at the typical way of programming using the integrated development environments (IDEs) and build tools available.
Kotlin is a Java virtual machine (JVM) language, and so the compiler will emit Java bytecode. Because of this, naturally, Kotlin code can call Java code, and vice versa! Therefore, you need to have the Java Development Kit (JDK) installed on your machine. To be able to write code for Android, where the most recent supported Java version is 6, the compiler needs to translate your code to bytecode that is at least compatible with Java 6.
In this chapter, you will learn how to do the following:
- Use the command line to compile and execute code written in Kotlin
- Use the REPL and write Kotlin scripts
- Create a Gradle project with Kotlin enabled
- Create a Maven project with Kotlin enabled
- Use IntelliJ to create a Kotlin project
- Use Eclipse IDE to create a Kotlin project
- Mix Kotlin and Java code in the same project
- CockroachDB權(quán)威指南
- AIRAndroid應(yīng)用開發(fā)實(shí)戰(zhàn)
- Java性能權(quán)威指南(第2版)
- Python漫游數(shù)學(xué)王國:高等數(shù)學(xué)、線性代數(shù)、數(shù)理統(tǒng)計(jì)及運(yùn)籌學(xué)
- BIM概論及Revit精講
- 匯編語言編程基礎(chǔ):基于LoongArch
- 工業(yè)機(jī)器人離線編程
- RocketMQ實(shí)戰(zhàn)與原理解析
- Tableau Desktop可視化高級(jí)應(yīng)用
- Julia High Performance(Second Edition)
- Learning C++ by Creating Games with UE4
- INSTANT Apache Hive Essentials How-to
- Sitecore Cookbook for Developers
- Android開發(fā)進(jìn)階實(shí)戰(zhàn):拓展與提升
- 你好!Python