wood burning stoves 2.0*
The moose likes Beginning Java and the fly likes Why cant i overload a method using an arryalist as the parameter? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Why cant i overload a method using an arryalist as the parameter?" Watch "Why cant i overload a method using an arryalist as the parameter?" New topic
Author

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

Christopher Whu
Ranch Hand

Joined: Sep 03, 2008
Posts: 80
just wondering why this is acceptable



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



thanks in advance!>
Tony Docherty
Bartender

Joined: Aug 07, 2007
Posts: 2301
    
  49
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

Joined: Oct 13, 2005
Posts: 39053
    
  23
I have a suspicion the > has been added by the forum software as a mistake. I have seen that happen before.
 
GeeCON Prague 2014
 
subject: Why cant i overload a method using an arryalist as the parameter?