Cannot invoke primitive type int


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;
continue;
} else if (largest.getNumber() == c.getNumber()) {
if(largest.getSuit().equals("Diamonds"))
largest = c;
continue;




Get Source Code

  Views 74   Posted on : Saturday, May 18, 2013 9:51:00 AM
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.




Also See: