title: Creating a console menu for user to make a selection
body: <p>Doing a program in Eclipse with Java. What I want to do is when I execute the program I want present the user with a choice. I have all the calculations etc. done, I'm just unsure as to how to make this menu to offer the user choices. Example of what I'm looking for:</p>
  
  <pre><code>To enter an original number: Press 1
  To encrypt a number: Press 2
  To decrypt a number: Press 3
  To quit: Press 4
  Enter choice:
  </code></pre>
  
  <p><br/></p>
  
  <pre><code>public static void main(String[] args) {
      Data data = new Data(); 
      data.menu(); }
  }
  </code></pre>