Adding to an ArrayList Java

后端 未结 7 1396
终归单人心
终归单人心 2020-11-28 12:24

I am a beginner to java, and need some help.

I am trying to convert an Abstract Data type Foo which is an associated list to an Arraylist of the strings B. How do yo

相关标签:
7条回答
  • 2020-11-28 13:15

    Array list can be implemented by the following code:

    Arraylist<String> list = new ArrayList<String>();
    list.add(value1);
    list.add(value2);
    list.add(value3);
    list.add(value4);
    
    0 讨论(0)
提交回复
热议问题