Kotlin 與 Java 100% 互通,因此您可以在應用程式中按需寫入 Kotlin 程式碼。透過「從 Java 到 Kotlin 學習課程」中的文章和程式碼研究室,您可以學習如何編寫符合語言習慣的 Kotlin 程式碼,將 Kotlin 新增至現有應用程式,以及從 Java 程式碼順暢呼叫 Kotlin。您也會瞭解,Android Studio 如何助您將 Java 程式碼轉換為 Kotlin 程式碼。
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2022-04-27 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]