As Norm pointed out, your threads are primarily math based, probably meant to explore math concepts rather than Java concepts (we might have programmed them in MATLAB or Fortran), and you haven't provided us much info about what they're supposed to do and how they're supposed to do it. (Code comments would be nice.)
Perhaps a math major will come by and find your topics interesting, but to be much help the rest of us would have to fill in our knowledge gaps that your subjects have revealed.
Be patient for that excited math major to come by.