Skip to content
This repository has been archived by the owner on Oct 23, 2018. It is now read-only.

Commit

Permalink
Merge pull request #4342 from noemi3/kHelloWorld
Browse files Browse the repository at this point in the history
Merged by aniket965
  • Loading branch information
Aniket965 committed Oct 17, 2018
2 parents 95dc346 + 1b7bfaa commit 0a6f3df
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Kotlin/estensionFunctionHelloWorld.kt
@@ -0,0 +1,11 @@
fun String.Companion.sayHello() : String{
return "Hello World"
}

fun String.print() {
println(this)
}

fun main (args : Array<String>){
String.sayHello().print()
}

0 comments on commit 0a6f3df

Please sign in to comment.