转自:https://my.oschina.net/u/2249714/blog/612753?p=1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import java . util . ArrayList ;
public class ArrayListRemove
{
public static void main ( String [ ] args )
{
ArrayList < String > list = new ArrayList < String > ( ) ;
list . add ( "a" ) ;
list . add ( "b" ) ;
list . add ( "b" ) ;
list . add ( "c" ) ;
list . add ( "c" ) ;
list . add ( "c" ) ;
remove ( list ) ;
 
for ( String s : list )
{
System . out . println ( "element : " + s ) ;
}
}
public static void remove ( ArrayList < String > list )
{
// TODO:
}
}

相关文章:

  • 2021-12-05
  • 2021-10-21
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2022-12-23
  • 2022-12-23
  • 2021-11-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案