2011-10-05から1日間の記事一覧

java リテラル 初期化 文字列

いろいろ使うケースが多いのでメモしておく。 public class Hoge { public static void main(String[] args){ String[] strs = { "hello", "world" }; for(String row: strs) { System.out.println( row ); } } }