Create a POJO with getters, setters, equals(), hashCode(), toString() and copy() in a single line:
data class Customer(val name: String, val email: String, val company: String)
Or filter a list using a lambda expression:
val positiveNumbers = list.filter {it > 0}
Want a singleton? Create an object:
object ThisIsASingleton {
val companyName: String = "JetBrains"
}
Get rid of those pesky NullPointerExceptions, you know, The Billion Dollar Mistake
var output : String
output = null
And of course, Kotlin protects you from mistakenly operating on nullable types, including those from Java
println(output.length())
And if you check a type is right, the compiler will auto-cast it for you
fun calculateTotal(obj: Any) {
if (obj is Invoice) {
obj.calculateTotal()
}
}
Multi-purpose language allowing you to build any type of application
Android Development.
No performance impact.
Very small runtime.
Application Server.
The technology doesn't matter. 100% compatible with all JVM frameworks.
JavaScript. Write code in Kotlin and target JavaScript to run on Node.js or in browser
Enterprise. Use Kotlin for any type of Enterprise Java EE development.
Web. Whether you want strongly typed HTML, CSS builders or just plain web development.
Create and consume Java code at will
import io.netty.channel.ChannelInboundMessageHandlerAdapter
import io.netty.channel.ChannelHandlerContext
public class NettyHandler: ChannelInboundMessageHandlerAdapter<Any>() {
public override fun messageReceived(p0: ChannelHandlerContext?, p1: Any?) {
throw UnsupportedOperationException()
}
}
Or use any existing library on the JVM, as there’s 100% compatibility, including SAM support.
Target either the JVM or JavaScript. Write code in Kotlin and decide where you want to deploy to
import js.dom.html.*
fun onLoad() {
window.document.body.innerHTML += "<br/>Hello, Kotlin!"
}
Concise, simple and very easy to read (and write)
1.0.3
A stable milestone version of Kotlin can be obtained from JetBrains Plugin Repository.
In IDEA navigate to: Settings -> Plugins -> Browse Repositories
Select the Kotlin plugin and then Download and Install.
In IDEA navigate to: Preferences -> Plugins -> Browse Repositories. Enter:
Then you should be able to select the Kotlin plugin and Download and Install. The repository above contains nightly builds published automatically.
IntelliJ IDEA plugins, YouTrack vNext, CRM apps, new products etc.
Using Kotlin for the Front-End Web
Kotlin in backend, data processing and service development
Using Kotlin in data processing pipeline, ElasticSearch plugins, and IDE plugins
Medication Control - Android Application
Data schema compiler for TL language implemented in Kotlin
Facebook Game with over 10K users daily. Written in Java and all new code in Kotlin
Android Application used internally
Android Application. Using Kotlin since M2
Using Kotlin to build a new Vertical Product with team of five
True Fool. A Durak card game for Android written in Kotlin and libGDX
Android news application with 96.6% code written in Kotlin
Most new non-UI code written in Kotlin
Fuzzy app/contact search and new UI written in Kotlin
Android app for searching bus trips with new features written in Kotlin since M9
Reedy – Intelligent speed reading application for Android written in Kotlin
Everything that isn't JavaScript front-end is Kotlin. Combined with Vert.x, Apache Spark, ElasticSearch
Using Kotlin in mobile applicatons and backend
About 25% of LOLSUMO Android app currently in Kotlin (w/ Dagger2, RxKotlin) ; all new code and tests in Kotlin.
Android app for helping first responders written in Kotlin
Cloud-based enterprise and professional photography acquisition and workflow. Using Kotlin for server-side code and a desktop Download application.
Using Kotlin in the 3DR Tower Android app, the best open source drone flight control app.
Built an Android app in the social selling space for Fortune 500 companies.
Android app for Wizbii, a professional social network for students and young graduates.
Kotlin allows us to focus on building a robust and beautiful Android voice communication app
Kotlin is gaining more and more lines of code in our Android SDK and internal libraries, shared between Android and Java8 backend.
We have found that Kotlin dramatically speeds up development time on Uprizer's diverse projects
SeFix, a lagfix for Root users (100% migrated to Kotlin).
Android apps related to robotics, 3D printing, IoT and much more.
Using data science to improve agriculture. Most new Android code written in Kotlin.
Millions of fashion people is using StyleShare for Android. Most new code written in Kotlin.
Software House from Warsaw. All new Android apps written in Kotlin.
Using Kotlin in some new apps such as dayu(dayu.com), Using Kotlin in some new internal apps in Innovation Product Department.
We provides dating apps in Japan. Using Kotlin in new Android apps.
Collaborative tools maker. Use Kotlin in Android App for task management.
Backend microservices based on Spring Boot.
Using Kotlin to write cleaner ViewModels with Rx in our Android app
NBC News, TODAY and Nightly News Android apps using Kotlin.
Kotlift transpiler lets us write business logic in Kotlin for Android and iOS.
With Android app based on Kotlin, we make all back-office tasks more efficient.
Empowers your enterprise to finish projects on time. All Android apps are written in Kotlin.
Global IT service provider. We use Kotlin in several customer and internal automation projects.
A marketplace to sell, buy and swap second-hand clothes. Using Kotlin for the Android app.
The largest app to request taxis in Brazil! Rewriting our Android apps in Kotlin.
Safedome (since 1.1.3) and other internal Android apps written in Kotlin.
Using Kotlin to build expressive, less verbose Android apps for startups and businesses.
Hootsuite's mobile apps schedule, publish, and monitor conversations on Twitter, Facebook, Instagram, YouTube, and more. Using Kotlin in our Android app.
All of Lunar OS's pre installed mobile apps are written in Kotlin.
Using Kotlin for Datawire Discovery and other back end services.