How to check “instanceo” class in kotlin?使用kotlin中的isif (obj is String) { print(obj.length)}if (obj !is String) { print("Not a String")}
確定! 回上一頁