import javax.swing.JOptionPane; public class Promedio { public static void numeros() { int num1= 0; int num2 = 0; int num3 = 0; String text1= JOptionPane.showInputDialog("Ingrese primer numero"); num1 = Integer.parseInt(text1); String text2= JOptionPane.showInputDialog("Ingrese segundo numero"); num2 = Integer.parseInt(text2); String text3= JOptionPane.showInputDialog("Ingrese tercer numero"); num3 = Integer.parseInt(text3); String txt = "Bienvenido"; mensaje(txt); promedio(num1, num2 ,num3); ...