I have an array of letters
public String[] letters = {"A","J","K","Q"};
and a method I tried creating to draw the letters.
public void drawLetterValue(Graphics pane, String[] someValue, int someX, int someY){
someValue = letters;
String aValue = String.valueOf(someValue);
pane.drawString(aValue, someX, someY);
}
The array is declared in a class called Card (also referred to as "pileOne") along with the method, however I am trying to call the method in another class called Game (I'm trying to make a deck of cards program). When I try to draw the method, (ex):
pileOne.drawLetterValue(pane, pileOne.letters[0], 155, 90);
I get the error:
"The method drawLetterValue(Graphics, String[], int, int) in the type Card is not applicable for the arguments (Graphics, String, int, int)"
I'm confused because I'm calling letters as an array, yet the error I get tells me I'm only calling it as a string. Any help is appreciated, thanks!