M
M
Maxim Siomin2021-09-14 20:02:31
Kotlin
Maxim Siomin, 2021-09-14 20:02:31

How to execute a string in kotlin?

There is a line: How to execute it as code? Example in python:
val foo = "println(1488)"

foo = "print(1488)"
exec(foo)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
illuzor, 2021-09-14
@MaxSiominDev

No way. At least by standard means

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question