I'm pretty new to Java. I'm making a class for a card. The face is the number of the card, and can only be 1-13. I'm trying to validate it by setting f to 1-13. I wanted to simply do this:
public void setFace(int f)
{
f int >= 1 && f <= 13);
}
Obviously, you can't do that. How do would I simply set f to the numbers 1-13? Thanks for any help!