Can a set method be coded like this
Scanner input = new Scanner(System.In);
String userName = input.next();
setName(userName){
name = userName;}
or how would I assign that input to an object, along with score or timePlayed in a game so that I can sort the players results?
