For some early practice on troubleshooting, fix the errors in the following exercises. For each exercise, copy the code into the Kotlin Playground in your browser. Try to run the program and you'll see an error message appear.
Fix the error in this program, so that it produces the desired output.
fun main(){ println("I'm
learning
Kotlin!WALLALL Knowledge Base ")
Desired output:
WALLALL Knowledge
Fix the error in this program, so that it produces the desired output.
fun main(){ printLine("There is a chance of snow") }
Desired output:
There is a chance of snow
Fix the error in this program, so that it produces the desired output.
fun main(){ println("Cloudy") println("Partly Cloudy") println("Windy") }
Desired output:
Cloudy
Partly Cloudy
Windy
Fix the error in this program, so that it produces the desired output.
fun main()( println("How's the weather today?") )
Desired output:
How's the weather today?
After you complete these exercises, check your answers against the solutions in the next section.
Comments
Post a Comment
We are open to discuss for the best Learn more how to optimize our business on our website? Please give a short line advice.