added hasNextLine(), fixed handling for input like '3/-' or '+/3'