File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why cant i overload a method using an arryalist as the parameter?

 
Christopher Whu
Ranch Hand
Posts: 80
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just wondering why this is acceptable



but this is not (an arraylist instead of a array)



thanks in advance!>
 
Tony Docherty
Bartender
Pie
Posts: 2878
59
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Those aren't examples of overloading as the method names are different.
Also, in the second example, the parameter signature is wrong - you have an spurious '>' character in there.
 
Campbell Ritchie
Sheriff
Pie
Posts: 47229
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a suspicion the > has been added by the forum software as a mistake. I have seen that happen before.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic