• Post Reply Bookmark Topic Watch Topic
  • New Topic

about ArrayList  RSS feed

 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

what is the difference between

ArrayList al=new ArrayList(4)

and ArrayList al=new ArrayList()

please anyone can explain me
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
download a copy of the java apidocs
then look up the constructors for arraylist
explanation is there
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks michael i got it
[ October 17, 2008: Message edited by: seetharaman venkatasamy ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!