Skip to content

bkkanq/kotlin-in-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

getting into kotlin

data class Person(val name: String,
                  val age: Int? = null)

fun main(args: Array<String>) {
    val persons = listOf(Person("영희"), Person("철수", age = 29))
    val oldest = persons.maxBy{ it.age ?: 0}
    println("나이가 가장 많은 사람? : $oldest")
}

About

practice

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published