title: How should I loop this program?
body: <p>Basically I need to loop this. I created a game where you answer questions about fish in runescape and I would like it to loop like say would ‘you go again’ or something. How would I go about this?</p>
  
  <pre><code>import java.util.Scanner;
  public class GameDriver
  {
    public static void main(String a[])
  {
    Game g = new Game();
    Scanner s = new Scanner(System.in);
    String buf = null;
  
    for(int i = 0; i &lt; 4; i++)
    {
       System.out.print(g.askQuestion());
       buf = s.nextLine();
  
       if(g.confirm(buf))
          System.out.println("You're Right!");
       else
          System.out.println("You're Wrong...");
    }
  
    System.out.println("You got a " + g.getScore());
    }
   }
  </code></pre>