- Kotlin for Enterprise Applications using Java EE
- Raghavendra Rao K
- 84字
- 2021-06-10 18:49:27
Java in a Kotlin project
Let's look at an example where we add Java code to an existing Kotlin project using Maven. We previously described the steps to create a Kotlin project in the Configuring Kotlin in your project section. We have created a Maven project in Kotlin using the kotlin-archetype-jvm archetype:

We will add a Java file to it and build the project as follows:

In this section, we have learned how to intermix Kotlin and Java using Maven.
推薦閱讀
- Spring Boot 2實戰之旅
- 測試驅動開發:入門、實戰與進階
- C語言程序設計
- Android程序設計基礎
- Node.js Design Patterns
- 青少年信息學競賽
- Getting Started with React Native
- Service Mesh實戰:基于Linkerd和Kubernetes的微服務實踐
- Spring Security Essentials
- JavaScript程序設計:基礎·PHP·XML
- Oracle 12c從入門到精通(視頻教學超值版)
- Java程序設計教程
- Java編程指南:語法基礎、面向對象、函數式編程與項目實戰
- 軟件再工程:優化現有軟件系統的方法與最佳實踐
- Learning C# by Developing Games with Unity 3D Beginner's Guide