Something about implementing Comparator interface isn't very clear to me: overriding the compare method.
Like here for example:
//This sorts a list of objects holding information based on...
Type: Posts; User: lorenxvii
Something about implementing Comparator interface isn't very clear to me: overriding the compare method.
Like here for example:
//This sorts a list of objects holding information based on...
Alright then! I'll probably consider that part about adding a number in the case of similar names.
Yeah, I know I'm probably over-analyzing things; I've just been told to be preventive as much as...
I thought not to allow the players enter the same names since during the game, as each player takes his/her turn, his/her name will be displayed to indicate that it's his/her turn and I thought to...
Well lol not really something that big, just a two-player game application with GUI. :)
If it helps, my game has a leaderboard. Do you think it makes sense not to allow players to enter the same...
Nothing really that complicated, just a dilemma and everyone's opinions would be appreciated.
Currently my program takes input from the user, their name. Before they can proceed though, there...