간단한 Array 사용 방법 in Kotlin

간단한 Array 사용 방법 in Kotlin

-

Java

Step[] fragmentArray = {
    new SignupStep1Fragment(),
    new SignupStep2Fragment(),
    new SignupStep3Fragment(),
    new SignupStep4Fragment()
}

Kotlin

var fragmentArray: Array<Step> = arrayOf(
    SignupStep1Fragment(),
    SignupStep2Fragment(),
    SignupStep3Fragment(),
    SignupStep4Fragment()
)