import javax.swing.JOptionPane;

public class Section7
{
    private class point {
        public int x;
        public int y;
        
    }
    
    public static void foo() {
        String s = JOptionPane.showInputDialog("Gimme a age fool!");
        int a = Integer.parseInt(s);
        if (a < 0 || a > 150) throw new RuntimeException("Yo!  What the dillio!?!? " + a + " is an illing age!");
    }
    public static void garply() {
        int result = "is this".compareTo("is thiS");
        char c;
        c = 'a';
        c = 'b';
        c = 'd';
        String s = "Mr. Casaburi, I'm asleep right now";
        c = s.charAt(2);
        int b = c;
        c = (char) b;
        JOptionPane.showMessageDialog(null, "" + result+c);
        
    }
    
    public static void trigstuff() {
        int x;
        double d = Math.PI;
        d = Math.sqrt(100);
        JOptionPane.showMessageDialog(null, "" + d);
        d = Math.max(100,20);
        
            
    }
    public static void showstuff() {
        JOptionPane.showMessageDialog(null, "This is line 1\\\\\n\"this is line 2");
    }
    public static void Main(String[] args) {
        
        String s = "0";
        while (Integer.parseInt(s) == 0 || s.equals("")) {
            s = JOptionPane.showInputDialog("Enter an integer");
            }
        double d = 10 / Integer.parseInt(s);
    }
    public static int getage() {
        String s = JOptionPane.showInputDialog("Enter an age");
        int a = Integer.parseInt(s);
        if (a > 130 || a < 0) throw new RuntimeException("Don't be illing me, I want a real age");
        return a;
    }
}