import javax.swing.*;
public class PARAMETROS1 {
public static void main(String args[])
{
sumar n=new sumar();
double x,y,r;
x=100;
y=30;
r=n.s(x, y);
JOptionPane.showMessageDialog(null,"LA SUMA ES: "+r);
}
}
class sumar
{
double s(double a,double b)
{
return a+b;
}
}
VER VIDEO
Suscribirse a:
Enviar comentarios (Atom)
0 comentarios:
Publicar un comentario