iZZiSwift

iZZiSwift

Learning by Sharing Swift Programing and more …

  • Swift Programming
    • Swift Language
    • i0S Swift Issue
  • Devices
  • MacOS
  • Python Programming
  • Kotlin Programming
  • Memo

Author: Alcott Elizabeth

Kotlin: Equivalent of getClass() for KClass

January 14, 2021 Alcott Elizabeth

Question or issue of Kotlin Programming: In Java we can resolve a variable’s class through getClass() like something.getClass(). In Kotlin I am aware of something.javaClass which is nice but I want to be able to get the KClass in a similar way. I’ve seen the Something::class syntax but this is not what I need. I […]

Continue Reading

Kotlin: What is the Kotlin double-bang (!!) operator?

January 11, 2021 Alcott Elizabeth

Question or issue of Kotlin Programming: I’m converting Java to Kotlin with Android Studio. I get double bang after the instance variable. What is the double bang and more importantly where is this documented?

Continue Reading

Kotlin: What is the difference between “const” and “val”?

January 10, 2021 Alcott Elizabeth

Question or issue of Kotlin Programming: I have recently read about the const keyword, and I’m so confused! I can’t find any difference between const and the val keyword, I mean we can use both of them to make an immutable variable, is there anything else that I’m missing?

Continue Reading

Same Catagory Posts

    iZZiSwift | Developed by iZZi Team from 2017