• + 1 comment

    Hello I'm having some dificulties trying to solve problems with private classes.

    I'm declaring them like this

    private Class MyCalculator implements AdvancedArithmetic {}

    If someone can give me more info about private classes... I've been searching on google for the topic but i can't really find nothing relevant >.<

    I'm always getting this error:

    Solution.java:5: error: class, interface, or enum expected private Class MyCalculator implements AdvancedArithmetic ^ Solution.java:7: error: class, interface, or enum expected public abstract int divisorSum(int n)