public void update(InputState input) { int ticks = Environment.TickCount - this.initTime; if (ticks > 1000 && input.isActive(InputState.Control.EXIT)) { this.showInputSound.play(); this.exit = true; return; } if (this.nameInput.hasFinishedListening()){ this.createSound.play(); String username = this.nameInput.getResult(); if (null != username && !"".Equals(username.Trim())) { this.scores.add( new Scoring(username, this.nextScore.score, true)); } } this.nameInput.update(); }