I am creating a game. I am at the final phase for the underlying basis and I am wondering whether what I am doing is recommended- if it’s convention.
All this class does is create an instance of the game. That’s it. The game instance takes care of the rest (i.e attaching the menu screen to the screenManager (i.e displaying the menu screen))
As a result, this class complains that we’re not using the value. But that’s exactly what we want, we HAVE no use of this result. I just want to know, is this OK?
public final class RunGame { private RunGame() {} public static void main(String[] args){ Game game = new Game(); // We want to start a new instance of the game, but we have no use with the result! } }