I keep getting "No main method found in project"

Im just starting googles kotlin cert program. Im trying to practice what i just learned from memory. This is what I have so far

fun main(border: String, timeToRepeat: Int) {
val border = “-×-
val timeToRepeat = 3
printBorder(border, timeToRepeat)
print(“Check this out Colt!”)
printBorder(border, timeToRepeat)

}

fun printBorder(border: String, timeToRepeat: Int) {
repeat(timeToRepeat){
print(border)
}
println()
}

Did i do something to make it not understand the main function?

The main function must take either no parameters or an array of strings.

3 Likes

This fixed it. Ty!