Kotlin_demo

import java.util.*

data class TestDataBean(
        val title: String = "",
        val count: Int = 0,
        val createTime: Date = Date()
)

fun main(args: Array) {
    val dataBean1 = TestDataBean("Test Title", 1, Date())
    val dataBean2 = TestDataBean(title = "Test Title")
    val dataBean3 = TestDataBean()
    val (title, count) = dataBean3
    println("$title $count")
}