/FileExtraction/Java_unseen/infotechprogrammer_learn-java-programming/_07_NestingofMethods/Nesting.java
class Nesting {
    int m,n;
    Nesting(int x, int y) {
        m = x;
        n = y;
    }
    int largest() {
        if(m >= n) {
            return (m);
        } else {
            return (n);
        }
    }
    void display () {
        int large = largest(); // Nesting of method in this another display method
        System.out.println("Largest Value = "+large);
    }
}
class NestingClassMain {
    public static void main(String args[]) {
        Nesting nest = new Nesting(50,40);
        nest.display();
    }
}
