Browsing tag:

function

Kotlin: Function or Methods Example

Simple Function. neither accepts nor return any variable or value fun helloWorld(){ println(“Hello World”) }  Function that takes a parameter but returns no value fun stringFunction (text : String){ for (c in text){ println(“$c “) //KOTLIN -> K O T L I N } } fun intFunction(int : Integer){ println(int) } Functions that returns a […]