mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-17 08:31:29 +00:00
13 lines
315 B
Kotlin
Vendored
13 lines
315 B
Kotlin
Vendored
public class StockMarketTableModel() {
|
|
|
|
public fun getColumnCount() : Int {
|
|
return COLUMN_TITLES?.size!!
|
|
}
|
|
|
|
companion object {
|
|
private val COLUMN_TITLES : Array<Int?> = arrayOfNulls<Int>(10)
|
|
}
|
|
}
|
|
|
|
fun box() : String = if(StockMarketTableModel().getColumnCount()==10) "OK" else "fail"
|