REPL in Kotlin

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:


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s