public class Circumference { public static void main(String[] args) { //String array, no idea what it's doing though. String askford = javax.swing.JOptionPane.showInputDialog("Please enter the diameter of a circle.\nNo decimals allowed!"); String units = javax.swing.JOptionPane.showInputDialog("Now enter the units."); if (units.isEmpty() == true) { units="units"; } int d=Integer.parseInt(askford); double pi=Math.PI; //Declares pi String circ="The circumference is " + (d*pi) + " " + units.toLowerCase(); javax.swing.JOptionPane.showMessageDialog(null, circ); System.exit(0); }}