I am new in kotlin and i have a problem in code


#1

fun main(args:Array){
Print(“Hello World”)
}

Error:(2, 5) Kotlin: Unresolved reference: Print


#2

There is no function Print with a upper case p. Also your main function needs to take an argument of Array<String>, just Array does not work either.

Also if I were you I’d take a look at the following:
https://kotlinlang.org/docs/reference/
https://kotlinlang.org/docs/reference/basic-syntax.html
https://kotlinlang.org/docs/books.html
https://kotlinlang.org/docs/tutorials/


#3

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)


#4

(post withdrawn by author, will be automatically deleted in 24 hours unless flagged)