title: How to make a certain window pop up if a certain number is put in
body: <p>I was wondering how do i make a certain window pop up if I input a certain number for my java program.</p>
  
  <pre><code>import javax.swing.JOptionPane;
  
  public class Calculator_Menu
  {
  public static void main (String args [])
  {
  String MainMenu = " Calculator Options \n\n1. Addition\n2" +
  " Subtraction\n3. Multiplication\n4. Division\n5. Exit";
  
      menu (MainMenu);
  }
  
  public static String menu (String info)
  {
      String choice = JOptionPane.showInputDialog (info);
      return choice;
  }
  
  public static int Addition ()
  { 
  </code></pre>