package com.jihe;
import java.util.*;
public class Test2 {

    public static void main(String[] args) {
        ArrayList<Integer> ls=new ArrayList<Integer>();
        for(int i=1;i<=100;i++ )
        {
            ls.add(i);
        }
        System.out.println("移除的数字是"+ls.remove(10));
        for(int j:ls)
        {
            System.out.println(j);
        }
    
    }

}

 

相关文章:

  • 2021-09-03
  • 2021-06-26
  • 2022-12-23
  • 2021-09-11
  • 2021-12-16
  • 2022-12-23
  • 2021-05-26
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2022-12-23
  • 2021-12-03
相关资源
相似解决方案