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