How to change the location labeled //1 for code to compile?

public class Test {
    public static void main(String s[]) {
        int i = getX();
    }
    private int getX() { //1
        return 10;
    }
}

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Cosmo
Sign Up Now
or Subscribe for future quizzes