Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Kotlin Code
- fun strLength(strInput: String): Int {
- return strInput.length()
- }
- fun main() {
- var strInput = "IronMan"
- /*
- *
- * 這裡有 1000 行 code
- *
- */
- //在這一步, IDE 就會提醒 Error 並且無法編譯
- strInput = null
- /*
- *
- * 這裡有 1000 行 code
- *
- */
- val length = strLength("strInput")
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement