Skip to content

Instantly share code, notes, and snippets.

View Franklin13620's full-sized avatar

Franklin Torres Franklin13620

  • Oraculus Technology
View GitHub Profile
@titandiaz
titandiaz / Menu.java
Created February 13, 2017 14:49
Menú con interfaz gráfica JOptionPane
import java.util.Scanner;
import javax.swing.JOptionPane;
public class MenuEstructurado {
static String pedir;
static Scanner scanner = new Scanner(System.in); //Sirve para recoger texto por consola
static int select = -1; //opción elegida del usuario
static int base, altura, area, perimetro, radio, ladoEquilatero, baseRectangulo, alturaRectangulo, baseTrianguloRectangulo, alturaTrianguloRectangulo ; //Variables