- 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
- Mastering Visual Studio 2017
- 自己動(dòng)手寫搜索引擎
- 測試驅(qū)動(dòng)開發(fā):入門、實(shí)戰(zhàn)與進(jìn)階
- Java完全自學(xué)教程
- JavaScript從入門到精通(第3版)
- Learning Three.js:The JavaScript 3D Library for WebGL
- Selenium Testing Tools Cookbook(Second Edition)
- Vue.js 2 Web Development Projects
- Image Processing with ImageJ
- Webpack實(shí)戰(zhàn):入門、進(jìn)階與調(diào)優(yōu)(第2版)
- OpenCV 3 Blueprints
- 數(shù)據(jù)科學(xué)中的實(shí)用統(tǒng)計(jì)學(xué)(第2版)
- Socket.IO Cookbook
- 算法(第4版)
- 代碼整潔之道:程序員的職業(yè)素養(yǎng)