java se 7新機能! android開発目線で
DESCRIPTION
http://atnd.org/events/41192の発表資料TRANSCRIPT
Java SE7 新機能!Android開発目線で
13年8月9日金曜日
自己紹介美馬 優貴
大学生
OCPでLPIClv3
AWSとAndroid開発を少々
twitter:@amyu_san13年8月9日金曜日
Androidアプリ作ってたら
13年8月9日金曜日
13年8月9日金曜日
うわっ…私のJavaのVer、 低すぎ…?
>>あなたの適正Ver
無料5分で、適正VerやJava基礎能力が分かる「市場価値診断テスト」。受けた人は1人を突破!結果もすぐわかると大人気
CHECK!
13年8月9日金曜日
仕方ない、1.7にするか
13年8月9日金曜日
13年8月9日金曜日
Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead
13年8月9日金曜日
AndroidはJava7に対応していない!
13年8月9日金曜日
もしAndroidがJava7対応していたら!
13年8月9日金曜日
switch
13年8月9日金曜日
String s = “aaaa”;
switch(s){ case “aaaa”: System.out.println(“aaaa”); break; case “bbbb”: System.out.println(“bbbb”); break; case “cccc”: System.out.println(“cccc”); break; default: System.out.println(“”); break;}
String s = “aaaa”;
if (s == “aaaa”){ System.out.println(“aaaa”);}else if(s==”bbbb”){ System.out.println(“bbbb”);}else if(s==”cccc”){ System.out.println(“cccc”);}else{ System.out.println(“”);}
13年8月9日金曜日
String s = “aaaa”;
switch(s){ case “aaaa”: System.out.println(“aaaa”); break; case “bbbb”: System.out.println(“bbbb”); break; case “cccc”: System.out.println(“cccc”); break; default: System.out.println(“”); break;}
String s = “aaaa”;
if (s == “aaaa”){ System.out.println(“aaaa”);}else if(s==”bbbb”){ System.out.println(“bbbb”);}else if(s==”cccc”){ System.out.println(“cccc”);}else{ System.out.println(“”);}
13年8月9日金曜日
ListView
13年8月9日金曜日
13年8月9日金曜日
13年8月9日金曜日
String item = クリックされた文字;Intent intent = new Intent();
switch(item){ case “amyu”: intent.putExtra(“test”,1); break; case “amya”: intent.putExtra(“test”,2); break; case “amyo”: intent.putExtra(“test”,3); break;}
String item = クリックされた文字;Intent intent = new Intent();
if (item == “amyu”){ intent.putExtra(“test”,1);}else if(item == ”amya”){ intent.putExtra(“test”,2);}else if(item == ”amyo”){ intent.putExtra(“test”,3);}
13年8月9日金曜日
String item = クリックされた文字;Intent intent = new Intent();
switch(item){ case “amyu”: intent.putExtra(“test”,1); break; case “amya”: intent.putExtra(“test”,2); break; case “amyo”: intent.putExtra(“test”,3); break;}
String item = クリックされた文字;Intent intent = new Intent();
if (item == “amyu”){ intent.putExtra(“test”,1);}else if(item == ”amya”){ intent.putExtra(“test”,2);}else if(item == ”amyo”){ intent.putExtra(“test”,3);}
13年8月9日金曜日
case:nullは使えないよ!だからNull処理をしないと
13年8月9日金曜日
String s = “aaaa”;
if(s!=null){ switch(s){ case “aaaa”: System.out.println(“aaaa”); break; case “bbbb”: System.out.println(“bbbb”); break; case “cccc”: System.out.println(“cccc”); break; default: System.out.println(“”); break; } else { }}
13年8月9日金曜日
ガッ13年8月9日金曜日
2進数リテラル
13年8月9日金曜日
13年8月9日金曜日
int binary = 0b10011;
13年8月9日金曜日
System.out.println(binary);
13年8月9日金曜日
System.out.println(binary);
=>1913年8月9日金曜日
String ybin = Integer.toBinaryString(binary)
13年8月9日金曜日
String ybin = Integer.toBinaryString(binary)
=>1001113年8月9日金曜日
アンダースコア付き数値リテラル
13年8月9日金曜日
....。
13年8月9日金曜日
int number = 123_456_789
13年8月9日金曜日
int number = 123_456_789
=>1234567813年8月9日金曜日
.........どうしよう。
13年8月9日金曜日
ジェネリクス省略記法!
13年8月9日金曜日
javaSE6まで
List<String> aaa = new
ArrayList<String>();
13年8月9日金曜日
javaSE7になったら!
List<String> aaa = new ArrayList<>();
13年8月9日金曜日
メチャクチャ使用頻度が高い!
13年8月9日金曜日
SpinnerListView
ExpandableListetc...
13年8月9日金曜日
13年8月9日金曜日
try13年8月9日金曜日
=>Scala
13年8月9日金曜日
Androidの開発は6
13年8月9日金曜日
AndroidはいつJava7に
対応させるの?
13年8月9日金曜日
今でしょ!
できるだけ早めに…13年8月9日金曜日