https://paiza.io/projects/3F_iZEjxHh9AUNgPwAohxA
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) throws Exception {
ArrayList<String> sl = new ArrayList<String>();
sl.add("a");
sl.add("b");
sl.add("c");
String[] temp = sl.toArray(new String[]{});
System.out.println(temp.length);
for( String x:temp){
System.out.println(x);
}
}
}
0 件のコメント:
コメントを投稿