Is this possible? I ask because I set the image of a piece using a String, and I need a way to pass the String from one class to another.
Essentially, what I'm doing is loading a file with the name of a piece, the x location of the piece, and the y of the piece. The piece is just "Piece.class". I need to be able to pass the name, x, and y of the piece to it from the LoadGame class. Is there a way to use a non-default constructor to where I can pass it the name, x, and y; or will I need to create a "setter" to change the name, x, and y after creation?
If you need to see my code, I can post it. I didn't see a purpose in adding it since I'm not sure if you(all) would need it, and it would clutter up the question if you didn't.
Thank you.

