The following code snippet is used to display a toast message. Identify which programming language the snippet is written in.
You can refer to the Android official docs for the Toasts overview. Right there, you can find code examples with a language switcher to switch between the supported programming languages. You don't need to know anything about the logic behind the code — just figure out the programming language of the code snippet based on what you can see on the docs.
val text = "Hello JetBrains Academy!"
val duration = Toast.LENGTH_SHORT
val toast = Toast.makeText(applicationContext, text, duration)
toast.show()