Ejercicio 1

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

package javaapplication23;

import java.util.Scanner;
import javax.swing.UIManager;
import javax.swing.plaf.ColorUIResource;

/**
*
* @author angar_000
*/
public class JavaApplication23 {

/**
* @param args the command line arguments
*/
public static void main(String[] args) {
Scanner scn=new Scanner(System.in);
UIManager UI = new UIManager();
UI.put("OptionPane.background", new ColorUIResource(233,132,254));
UIManager.put("Panel.background", new ColorUIResource(250, 250, 150));
int total,d1,d2;
String s;
System.out.println("ingrese primer numero:");
d1=scn.nextInt();
System.out.println("ingrese el segundo numero:");
d2=scn.nextInt();
total=d1+d2;
System.out.println("null,el resultado es: "+total);
}

You might also like