0
0

More than 1 year has passed since last update.

ArrayListに格納、取り出し、サンプル

Posted at
sample.java
    public static void main(String[] args) {
        List<String> li = new ArrayList();
        li.add("a1");
        System.out.println(li.getClass());
        for (String l:li) {
            System.out.println(l);
        }

実行結果

class java.util.ArrayList
a1
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0