Java: private final String TAG = getClass().getSimpleName(); //需要宣告變數型態 ... Log.d(TAG, "Hello Java"); //程式碼結尾需要加";" Kotlin:
確定! 回上一頁