5 search resultsShowing 1~5 results

Stocked
Daitoryo

@Daitoryo

KotlinのNULL安全

Kotlinはプログラムの実行時にNullPointerExceptionが発生する可能性を極力排除するように働きかけてくれます。 Null参照についての構文が厳しく設定されいます。守られていな...

1
0
Comment0
Daitoryo

@Daitoryo

Kotlinのwhen式

Kotlinのはwhen式というものが用意されている。 when式とはJavaでいうswitch 〜 case文のようなものである。 //Java switch (式){ case 結果1: 式...

0
0
Comment0
Daitoryo

@Daitoryo

Kotlinのfor文

for文の書き方 Kotlinでのfor文は下記のような構成である。 for(変数 in A..Z) {  // 処理 } A..Zの部分には、『0..26』のように、ループさせたい回数を記載す...

2
1
Comment0
Daitoryo

@Daitoryo

Kotlinの変数宣言

変数宣言 // Java String str1 = "あいうえお"; final String str2 = "かきくけこ"; // Kotlin var str1: String = "あい...

0
0
Comment0

5 search resultsShowing 1~5 results

Qiita is a knowledge sharing service for engineers.

  1. You can follow users and tags
  2. You can stock useful information
  3. You can make edit suggestions for articles
Functions that can be used after logging in