Initial import of 4.x module.
This commit is contained in:
parent
af67f93887
commit
b4d2df93d3
8 changed files with 193 additions and 0 deletions
20
sample.txt
Normal file
20
sample.txt
Normal file
|
@ -0,0 +1,20 @@
|
|||
package demo
|
||||
|
||||
/**
|
||||
* This class supports greeting people by name.
|
||||
*
|
||||
* @property name The name of the person to be greeted.
|
||||
*/
|
||||
class Greeter(val name: String) {
|
||||
|
||||
/**
|
||||
* Prints the greeting to the standard output.
|
||||
*/
|
||||
fun greet() {
|
||||
println("Hello $name!")
|
||||
}
|
||||
}
|
||||
|
||||
fun main(args: Array<String>) {
|
||||
Greeter(args[0]).greet()
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue