REPL in Kotlin

Foram Adeshara
AndroidPub
Published in
1 min readJul 13, 2017

Kotlin REPL stands for Read- Eval- Print- Loop. It is one of the interactive shell tool to quickly run a part of code directly without actually running the whole app. REPL is a interactive computer programming environment that takes single user inputs (i.e. single expressions), evaluates them, and returns the result to the user

Location of REPL in Android Studio: You can find REPL under the Tool -> Kotlin -> Kotlin REPL menu.

How to use REPL ?: After going to Kotlin REPL menu start with small arithmetic example of 1+2 now enter Command+ Enter in Mac OR Control +Enter in Windows.

You can also perform multiple line code:

--

--