I would suggest using nextLine() as it will clear the buffer. A lot of problems arise when using next() and then not clearing the buffer afterwards.