title: Creating commands for a terminal app in Java
body: <p>I'm new to programming, and I'm making an app that <strong>only</strong> runs in the command-line. I found that I could use a BufferedReader to read the inputs from the command-line.</p>
  
  <pre><code>BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      String Input = "";
  
  while (Input.equalsIgnoreCase("Stop") == false) {
          Input = in.readLine();  
          //Here comes the tricky part
      }
  
      in.close();
  </code></pre>
  
  <p>What I'm trying to do now is to find a way to create different "commands" that you could use just by typing them in the command-line. But these commands might have to be used multiple times. Do I have to use some kind of Command design pattern with a huge switch statement (that doesn't seem right to me)? I'd like to <strong>avoid using an extra library</strong>.</p>
  
  <p>Can someone with a bit more experience that me try to help me?</p>