![Java to kotlin](https://cdn3.cdnme.se/5447227/9-3/screenshot_6_64e62947e087c31b3e7101ab.jpg)
Then I created a kotlin folder in src/main and src/test along with the java folder and copied the packages to kotlin folder. This was perhaps an ambitious choice, and I regretted much during the course of conversion from Java to Kotlin that why did I choose this option, but at the end of the day this was perhaps the better choice. I decided to go with the option no 2 and go for the kill. I found this article on Kotlin’s website. Before this, I had to setup my application, which is a Maven based Spring Boot 1.5 application running Java 8, with adequate Maven dependencies related to Kotlin. I was so committed that I said to myself, lets roll up the sleeves and do it. But soon I realized that I have 100+ of such files (including tests) to convert 😱.
![java to kotlin java to kotlin](https://res.cloudinary.com/practicaldev/image/fetch/s--IROCZEQ4--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://scand.com/wp-content/uploads/2019/05/bp060-1-differences.jpg)
![java to kotlin java to kotlin](https://static.packt-cdn.com/products/9781788474542/graphics/assets/c421ca1c-4301-49fc-9cd8-b7b503f01e9d.png)
I got excited immediately, and that’s probably a bit workaholic or you may say that I am passionate to work and cannot live long without actually getting my hands dirty with keyboard 🙃Īnyways, given that I had never worked on Kotlin before this day, I was not sure if I would succeed. Waking up in the morning on Friday, a weird idea came to my mind, an idea to convert an existing application from Java to Kotlin. It was Friday May 01, 2020, the Labor Day holiday in Pakistan 🇵🇰Ī day before I had thought to not work on any software related stuff to give myself a break for a long weekend spanning Friday, Saturday and Sunday, so that I can re-energize myself for another Working from home week. I have migrated a Java Spring Boot Project to Kotlin without any prior experience on Kotlin
![Java to kotlin](https://cdn3.cdnme.se/5447227/9-3/screenshot_6_64e62947e087c31b3e7101ab.jpg)