`
import javax.swing.JOptionPane;
public class gui {
public static void main (String[] args){
JOptionPane.showMessageDialog(null, "Hypotenusa");
int base = Integer.parseInt(JOptionPane.showInputDialog("What is the base"));
int height = Integer.parseInt(JOptionPane.showInputDialog("What is the height"));
double hypotenuse = Math.sqrt((base*base) + (height*height));
JOptionPane.showMessageDialog(null, "The Hypotenuse is: " + hypotenuse);
}
}`