// PROGRAMA INTRODUCTORIO [ 1 ]
import javax.swing.*;
import java.awt.*;
public class Programa_1
{
Suma R;
int x=9, y=9;
public static void main(String A[]) { new Programa_1(); }
public Programa_1()
{
System.out.println("hola mundo ...");
this.Suma();
Suma TOTAL = new Suma();
TOTAL.Suma(4,5);
R = new Suma();
R.Suma(2,0);
}
void Suma()
{
int x=3, y=1;
System.out.println("La Suma LOCAL de " + x + "+" + y + "= " + (x+y));
x = this.x; y = this.y;
System.out.println("La Suma DE CLASE de " + x + "+" + y + "= " + (x+y));
}
}
class Suma
{
void Suma(int x, int y)
{
System.out.println("La Suma DE SUMA de " + x + "+" + y + "= " + (x+y));
}
}