官术网_书友最值得收藏!

Converting Java code to Kotlin code

From the menu select CodeConvert 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 NewKotlin 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.

主站蜘蛛池模板: 图片| 天全县| 吉安县| 壶关县| 镇赉县| 乌拉特后旗| 台东县| 大兴区| 西安市| 简阳市| 红安县| 中阳县| 碌曲县| 当雄县| 惠州市| 日照市| 新竹市| 宾川县| 长葛市| 高雄县| 清丰县| 阿勒泰市| 开封市| 马边| 宁武县| 佛冈县| 米泉市| 万安县| 惠来县| 潼关县| 石景山区| 英德市| 桂东县| 忻城县| 平顺县| 壶关县| 藁城市| 德惠市| 金乡县| 哈密市| 铁力市|