Com Sci Chapter 2 Lecture Notes

//Convert the string from the input dialog box to a double-precision //number, and store the answer in legA. legA = Double.parseDouble(legA_String); //Prompt the user for the length of the second leg, //then convert the string to a number and store in legB. legB_String = JOptionPane.showInputDialog(null, "Please enter the " + ................
................