/** * Name: Erica Eddy * Course: CSCI 241 - Computer Science I * Section: 00_ * Assignment Number: ?? * * Project/Class Description * This class demonstrates the use of JOptionPane showInputDialog() * * Known Bugs: none */ import javax.swing.*; public class TestInputDialog { public static void main (String [] args) { String month = JOptionPane.showInputDialog(null,"Month number? "); int mon = Integer.parseInt(month); JOptionPane.showMessageDialog(null, "current month = " + mon); mon = mon + 1; JOptionPane.showMessageDialog(null,"next month = " + mon); } }