Is there any way of somehow reducing or compacting the amount of arguments passed to main
they these are many?
Let's say I have a Ludo game, and I need to pass number of players, names, colors, type of player (human, computer), type of AI for computer players. That's a lot of arguments.
I don't think I can use any of the techniques described in Effective Java. Is there any smart way of achieving this?
Aucun commentaire:
Enregistrer un commentaire