- 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.
- R語言經典實例(原書第2版)
- PostgreSQL for Data Architects
- Magento 2 Theme Design(Second Edition)
- Learning Firefox OS Application Development
- Banana Pi Cookbook
- Hands-On RESTful Web Services with Go
- QGIS By Example
- 新一代SDN:VMware NSX 網絡原理與實踐
- Visual Basic 6.0程序設計實驗教程
- HTML5+CSS3+JavaScript 從入門到項目實踐(超值版)
- Practical Maya Programming with Python
- Java從入門到精通(視頻實戰版)
- 趣味掌控板編程
- MonoTouch應用開發實踐指南:使用C#和.NET開發iOS應用
- C++ Windows Programming