He wants it to mean less than or greater than. (I would remove the leading 0 in 01001)

--- Update ---

Start with the main method and see where it's calling the method that does the other...