Arrayクラスの説明に戻る

insertメソッド(Arrayクラス)

配列の途中に要素を挿入します
書式
insert(index,element)
index : 挿入する場所。(先頭:0 末尾:size()-1)
element : 追加する要素。