public void CardToPile() {
waste.push(reserve.pop);
}
views:
82answers:
2
+6
A:
public void CardToPile() {
waste.push(reserve.pop()); //Here is the error
}
You need to add the parens in order to call the method.
Carlucho
2010-03-22 02:13:55
Oh would that Java could be more like Perl. ;-)
amphetamachine
2010-03-22 02:17:27
+2
A:
If by "not working" you mean that it does not compile, it might be because your call to reserve.pop
seems incorrect. You might have meant reserve.pop()
.
Anzurio
2010-03-22 02:15:55