I am currently working on a project for Java, but whenever I try and compile the program I am given this error message:
./PokerHand.java:38: error: incompatible types: Card cannot be converted to int
this.cards[i] = new Card(cards[i]);
^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
The problem is I am unable to change this section of the code as the professor gave it to me and told me NOT to change it. The only methods I can change are the following hasFlush(), hasFourOfAKind(), hasFullHouse(), hasThreeOfAKind(), hasTwoPair(), hasOnePair().
Below is the code I am working with.