小编Kel*_*lli的帖子

什么是 Java 翻译的“private Lateinit var LookupKey: String”

我正在关注Android 开发者网站上的教程。它在 Java 示例中使用 Kotlin。我在堆栈溢出上找到了这篇关于等效内容的文章,但我不明白答案。

原来的代码是:

// Defines the selection clause
private static final String SELECTION = Data.LOOKUP_KEY + " = ?";
// Defines the array to hold the search criteria
private String[] selectionArgs = { "" };
/*
 * Defines a variable to contain the selection value. Once you
 * have the Cursor from the Contacts table, and you've selected
 * the desired row, move the row's LOOKUP_KEY value into this
 * variable.
 */
private …
Run Code Online (Sandbox Code Playgroud)

java android kotlin

3
推荐指数
1
解决办法
5252
查看次数

标签 统计

android ×1

java ×1

kotlin ×1