Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question