Basic Java complexity parser working