Update RecursiveWalker.java

add constant of beg element