public
Created

ArrayListの初期化

  • Download Gist
gistfile1.java
Java
1 2 3 4 5 6 7 8 9 10 11 12
//TypeSafeなListの初期化
 
new ArrayList<String>() {
{
add("hoge0");
add("hoge1");
add("hoge2");
add("hoge3");
add("hoge4");
add("hoge5");
}
};

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.