title: How to repeat a method in Java
body: <p>In general, how do you repeat (or maybe recall, I'm not to clear with the jargon as of yet) a method? Like:</p>
  
  <pre><code>public static void main(String[] args) {
          Scanner keyboard = new Scanner(System.in);
          System.out.println("Enter the keys");
          String input = keyboard.next();
          if (input.equals("a")) {
              System.out.println("0");
          }
  </code></pre>
  
  <p>How would you make it so that you could rerun this method, and keep on inputting more data?
  Like, when you use (batch programming language)</p>
  
  <pre><code>:a
  (function here)
  goto a
  </code></pre>