title: Problems with Making a Highscore and Loops and Overall Issues
body: <p>Hey guys , thanx for the previus help.....
  This time it's homework meaning they want me to make  a highscore that shows playername,score (tries it took) and time.
  Basically it wants:<br>
  To write a game in which a user is to guess a random number between 1 and 1000. The program should read a number from the keyboard, and print whether the guess was too high, too low or correct. When the user has guessed correctly, the program prints out the numbe of  guesses made and time and the playername.When a game is
  started the program must print the entire high score list, sorted by the number of guesses in ascending order. Note: this list must be maintained as long as the game-object is alive!
  example without time; </p>
  
  <pre><code>Guess is too high!
  &gt; 813
  Guess is too high!
  &gt; 811
  **** CORRECT!
  **** You guessed the correct number in 11 guesses
  Please enter you name:
  &gt; niklas
  Do you want to play again?(y/n)
   &gt;y
  Current highscore list:
  Name Guesses
  niklas 11
  </code></pre>
  
  <p>My questions are; is my code provided below enough to mainten these requirements, if not what should i add then because i Really don't know what to do? And please consider that I'm a still in learning phase So take it easy with the Comments :)
  Here is the code:</p>
  
  <pre><code>package testa;
  import java.util.*;
  import java.util.Scanner.*;
  import java.util.ArrayList.*;
  
  
  public class Main {
  private static class Score {
  
   int playerScore = 0;
   double playerTime = 0;
   String playerName;
  
   public Score ()
   {
   }
  
   public Score (int playerScore, double playerTime, String playerName)
   {
    this.playerScore = playerScore;
    this.playerTime = playerTime;
    this.playerName = playerName;
   }
  
   public String ToString()
   {
    String scoreList = (playerScore + "\t\t" + playerTime + "\t\t" + playerName);
  
    return scoreList;
   }
  }
  
  private static void start() {
  
   int answer = (int) (Math.random() * 1000 + 1) ; 
   int tries = 0 ;
  
   int guess = -1;
   String name ;
   String quit = "quit";
   String y = "yes";
   String n = "no";
   String currentGuess;
  
   String another = ("y") ;
   Scanner input = new Scanner (System.in);
  
   ArrayList&lt;Score&gt; scores = new ArrayList&lt;Score&gt;();
  
  
      System.out.println( " Welcome to Guessing Game " ) ;
      System.out.print("Please enter a number between 1 and 1000 : ");
                      currentGuess = input.nextLine();
        long startTime = System.currentTimeMillis();
  
  
  
  
  
        do
        {
  
  
                 if (currentGuess.equalsIgnoreCase(quit))
    {
     System.out.println("Leaving Us So Soon?");
     System.exit(0);
    }
  
                 try    {
     guess = Integer.parseInt(currentGuess);
          } catch (NumberFormatException nfe) 
                          {
     System.out.println(" Dude Can You Read, Only Digits ");
                          currentGuess = input.nextLine();
  
  
     }
  
    if (guess &lt; 1 || guess &gt; 1000)
    {
     System.out.println("Stupid Guess I Wont Count That.");
                          currentGuess = input.nextLine();
  
    }
         if (guess &lt; answer )
            {
     System.out.println("too low");
     currentGuess = input.nextLine();
                          tries++;
    }
  
  
      else if(guess  &gt; answer )
    {
     System.out.println("too high");
     currentGuess = input.nextLine();
                          tries++;
    }
  
  
      else if (guess == answer)
    {       
     //stop stop watch
     long endTime = System.currentTimeMillis();
     //calculate game time
     long gameTime = endTime - startTime;
     System.out.println("You Rock Dude, Good Job!");
  
                          System.out.println("You guessed " + tries + " times in " + (int)(gameTime/1000) + " seconds.");
                          System.out.println("Please enter your name.");
              name = input.nextLine();
                            //create score object
     Score currentScore = new Score(tries, gameTime, name);
     //add score to arrayList
     scores.add(currentScore);
  
  
                       Scanner playGame = new Scanner(System.in);
                       System.out.print("Want to go again?(y/n).....");
                        if (currentGuess.equalsIgnoreCase(y))
     {
                       System.out.println("Guess \t Time in miliseconds \t Name");
      //print out high score list
      for (int i = 0;i &lt; scores.size(); i++)
      {
      System.out.println(scores.get(i));
      }
       another = playGame.nextLine();
                                   Main.start();
     }
                 //if user doesn't want to play again
     if (currentGuess.equalsIgnoreCase(n))
     {
      System.out.println("Guess \t Time in miliseconds \t Name");
      //print out high score list
      for (int i = 0;i &lt; scores.size(); i++)
      {
      System.out.println(scores.get(i));
      }
                                  System.out.println("Thanx For Playing.");
      System.exit(0);
                      }
            }
  
          } while (guess != answer);
  
  
  
  }
  
  public static void main(String[] args) {
     ArrayList&lt;Score&gt; scores = new ArrayList&lt;Score&gt;();
      Main.start();
      }
  }
  </code></pre>