0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

俺的Kotlinリファレンス綿

Last updated at Posted at 2020-01-07

javaと比べながら書きます。
#変数宣言

java

//例 int型
int num = 1;
final int num = 1;

kotlin

//例 int型
var num = 1
val num = 1
//明示的に型を制限する場合
var num:Int = 1

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?