JOption - J System.out.println("Enter two...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
import javax.swing.JOptionPane; public class JOption { public static void main(String[]args) { int calulatedSum = 6; int calulatedInches = 5; i JOptionPane.showInputDialog("Enter number of Feet"); JOptionPane.showInputDialog("Enter number of inches");
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: J System.out.println("Enter two intergers separated by spaces."); S JOptionPane.showMessageDialog(null,"Feet = " + calulatedFeet + " Inches =" + calulatedInches); System.exit(0); }}...
View Full Document

Ask a homework question - tutors are online