src/main/java/com/mycompany/app/dsa/chapterTwo/Progression.java
public long nextValue(){
        long answer = current;
        advance(); //this protected call is responsible for advancing the current value
        return answer;
    }
/** Returns the next value of the progression */
Returns the next value of the progression
Returns the next value of the progression
public long nextValue(){
        long answer = current;
        advance(); 
        return answer;
    }
public long nextValue ( ) { long answer = current ; advance ( ) ; return answer ; }
Returns the next value of the progression
Returns the next value of the progression
//this protected call is responsible for advancing the current value