- Kotlin Blueprints
- Ashish Belagali Hardik Trivedi Akshay Chordiya
- 179字
- 2021-07-02 21:50:21
Converting Java code to Kotlin code
From the menu select Code
| Convert Java File to Kotlin File
and kaboom! Your task is done. Your first Kotlin activity is ready. As a means of verifying everything is fine, we suggest you run the project once. If you can see Hello World on the emulator or device that means you have successfully configured Kotlin for Android.
Or, create a new Kotlin file (File | New | Kotlin File/Class), and then paste your Java code into that file, when prompted, click Yes to convert the code to Kotlin. You can check Don't show this dialog next time, which makes it easy to dump Java code snippets into your Kotlin files:

Have a watchful eye on such conversion that IDE is doing for you. With great power comes great responsibility. It's always better to check whether IDE has done the right thing for you or not. IDE is not yet that smart and stable that it can convert the code with optimization as well.
- Docker and Kubernetes for Java Developers
- VSTO開發入門教程
- Neo4j Essentials
- Easy Web Development with WaveMaker
- Visual Basic學習手冊
- Visual Basic程序設計上機實驗教程
- Oracle GoldenGate 12c Implementer's Guide
- .NET 4.5 Parallel Extensions Cookbook
- Clojure for Java Developers
- App Inventor 2 Essentials
- Laravel 5.x Cookbook
- Python GUI設計tkinter菜鳥編程(增強版)
- R Data Visualization Cookbook
- C# 7.0核心技術指南(原書第7版)
- Bootstrap for ASP.NET MVC(Second Edition)