class ReverseRun{ int numRuns; int currRun; int currVerse; public static void init(int numRuns){ this.numRuns = numRuns; this.currRun = 0; this.currVerse = 1; } // method init public static int nextVerse(){ if(currVerse == 1){ currRun++; currVerse = CurrRun; } else{ currVerse--; } if(currRun > numRuns){ throw(Done); } else{ return(currVerse); } } // method nextVerse } // class ReverseRun