Cannot invoke primitive type int

This forum was posted on Saturday, May 18, 2013 9:51:00 AM

it is coming up with "can't invoke getNumber() on the primitive type int. Why?
public Card findLargest() {
 ArrayList cardStack;}
public Card getLargest() {
Card largest;
Card c;
for (int i = 1 largest = cardStack.get(0); i < cardStack.size(); i++) {
c = cardStack.get(i);
if (largest.getNumber() > c.getNumber()) {
largest = c;
} else if (largest.getNumber() == c.getNumber()) {
largest = c;

 Views 106 Get Source Code >>
Related Tags:

Replies on "Cannot invoke primitive type int" :

Nobody has replied on this post , be first to post answer.

Post Your Answer/Comment:

Please Login first to post Reply !

Note: Please Put Code into <code></code> block.

Threads related to "Cannot invoke primitive type int":